class A2::Subcommand::Infra::ShowAttributes

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/a2/subcommands/infra.rb, line 60
def initialize
  super('show-attributes', takes_commands: false)
end

Public Instance Methods

execute(node_id) click to toggle source
# 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