Class: A2::Subcommand::Infra::ShowAttributes

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/a2/subcommands/infra.rb

Instance Method Summary collapse

Constructor Details

#initializeShowAttributes

Returns a new instance of ShowAttributes.



60
61
62
# File 'lib/a2/subcommands/infra.rb', line 60

def initialize
  super('show-attributes', takes_commands: false)
end

Instance Method Details

#execute(node_id) ⇒ Object



64
65
66
# File 'lib/a2/subcommands/infra.rb', line 64

def execute(node_id)
  puts JSON.pretty_generate(A2::Client.new(command_parser.data).show_attributes(node_id))
end