Class: A2::Subcommand::Infra::ShowAttributes
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- A2::Subcommand::Infra::ShowAttributes
- Defined in:
- lib/a2/subcommands/infra.rb
Instance Method Summary collapse
- #execute(node_id) ⇒ Object
-
#initialize ⇒ ShowAttributes
constructor
A new instance of ShowAttributes.
Constructor Details
#initialize ⇒ ShowAttributes
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 |