Class: Qtrix::CLI::Queues
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Qtrix::CLI::Base
Instance Method Details
#exec_behavior ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/qtrix/cli/queues.rb', line 53 def exec_behavior if config[:desired_distribution] msg = "Queues:\n" msg += Qtrix.desired_distribution.map(&stringify).join("\n") write(msg) elsif queue_weights map_queue_weights queue_weights elsif queue_weights_yaml map_queue_weights queue_weights_yaml end end |