class HammerCLIForeman::InfoCommand
Public Class Methods
command_name(name=nil)
click to toggle source
Calls superclass method
# File lib/hammer_cli_foreman/commands.rb, line 477 def self.command_name(name=nil) super(name) || "info" end
output(definition = nil, &block)
click to toggle source
Calls superclass method
# File lib/hammer_cli_foreman/commands.rb, line 468 def self.output(definition = nil, &block) super begin output_definition.update_field_sets('THIN', (searchables.for(resource).map(&:name) + ['id']).map(&:to_sym)) rescue StandardError => e # Some subcommands may not have such fields or defined resource end end
Public Instance Methods
extend_data(record)
click to toggle source
# File lib/hammer_cli_foreman/commands.rb, line 486 def extend_data(record) record end
print_data(record)
click to toggle source
# File lib/hammer_cli_foreman/commands.rb, line 490 def print_data(record) print_record(output_definition, record) end
send_request()
click to toggle source
Calls superclass method
HammerCLIForeman::Command#send_request
# File lib/hammer_cli_foreman/commands.rb, line 481 def send_request record = super extend_data(record) end