Add option to skip audit broadcasts (useful when testing)

This commit is contained in:
David Heinemeier Hansson
2023-02-23 10:04:35 +01:00
parent b879412a6f
commit 7ad416f029
3 changed files with 6 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ class Mrsk::Cli::Accessory < Mrsk::Cli::Base
execute *accessory.run
end
audit_broadcast "Booted accessory #{name}"
audit_broadcast "Booted accessory #{name}" unless options[:skip_broadcast]
end
end
end