class A2::Subcommand::NodeMgmt::Get
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/a2/subcommands/node_mgmt.rb, line 5 def initialize super('get', takes_commands: false) end
Public Instance Methods
execute(id)
click to toggle source
# File lib/a2/subcommands/node_mgmt.rb, line 9 def execute(id) puts JSON.pretty_generate(A2::Client.new(command_parser.data).get_managed_node(id)) end