class Smith::Commands::Status
Public Instance Methods
execute()
click to toggle source
# File lib/smith/commands/smithctl/status.rb, line 7 def execute status do |s| responder.succeed((s) ? "Agency running" : "Agency not running") end end
status(&blk)
click to toggle source
# File lib/smith/commands/smithctl/status.rb, line 13 def status(&blk) Messaging::Queue.number_of_consumers(QueueDefinitions::Agency_control.call) do |consumers_count| blk.call(consumers_count > 0) end end
Private Instance Methods
options_spec()
click to toggle source
# File lib/smith/commands/smithctl/status.rb, line 21 def options_spec banner "Shows the status of the agency — ONLY WORKS LOCALLY" end