class Ridoku::Services::Rabbitmq
Attributes
mqconfig[RW]
Public Instance Methods
config(sub)
click to toggle source
# File lib/ridoku/services/rabbitmq.rb, line 38 def config(sub) $stderr.puts 'RabbitMQ Config' end
print_help()
click to toggle source
# File lib/ridoku/services/rabbitmq.rb, line 23 def print_help $stderr.puts <<-EOF Command: service:change rabbitmq List/Modify the current app's associated workers. rabbitmq[:config] lists configuration EOF end
run(cmd, args)
click to toggle source
# File lib/ridoku/services/rabbitmq.rb, line 10 def run(cmd, args) sub_command = args.shift case cmd when 'config', nil config(sub_command) when 'describe', 'list', 'show' show(sub_command) else print_help end end
setup()
click to toggle source
# File lib/ridoku/services/rabbitmq.rb, line 33 def setup Ridoku::Base.fetch_stack self.mqconfig = (Base.custom_json['rabbitmq'] ||= {}) end
show(sub)
click to toggle source
# File lib/ridoku/services/rabbitmq.rb, line 42 def show(sub) setup puts JSON.pretty_generate(mqconfig) end