class Smith::Commands::Group
Public Instance Methods
execute()
click to toggle source
# File lib/smith/commands/agency/group.rb, line 9 def execute group do |value| responder.succeed(value) end end
group(&blk)
click to toggle source
Returns the agents in a group.
# File lib/smith/commands/agency/group.rb, line 16 def group(&blk) separator = (options[:one_column]) ? "\n" : " " begin blk.call(agent_group(target.first).join(separator)) rescue RuntimeError => e blk.call(e.message) end end
options_spec()
click to toggle source
# File lib/smith/commands/agency/group.rb, line 25 def options_spec banner "Lists the agents in a group.", "<group>" opt :one_column, "Lists one agent per line", :short => :s end