Class: Smith::Commands::Metadata

Inherits:
Smith::CommandBase show all
Defined in:
lib/smith/commands/agency/metadata.rb

Instance Attribute Summary

Attributes inherited from Smith::CommandBase

#options, #target

Instance Method Summary collapse

Methods inherited from Smith::CommandBase

#banner, #format_help, #initialize, #parse_options

Methods included from Logger

included

Constructor Details

This class inherits a constructor from Smith::CommandBase

Instance Method Details

#executeObject



5
6
7
# File 'lib/smith/commands/agency/metadata.rb', line 5

def execute
  responder.succeed(target.inject([]) { |acc,agent_name| acc.tap { |a| a << ["#{agent_name}: #{agents[agent_name].}"] } }.join("\n"))
end