Class: A2::Subcommand::Infra::ListAllCheckedInNodes
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- A2::Subcommand::Infra::ListAllCheckedInNodes
- Includes:
- Paginated
- Defined in:
- lib/a2/subcommands/infra.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ ListAllCheckedInNodes
constructor
A new instance of ListAllCheckedInNodes.
Methods included from Paginated
#generate_paginated_json_filters, #generate_paginated_query_string, #with_paginated_filter_json, #with_paginated_filter_query
Methods included from Filtered
#generate_json_filters, #generate_query_filters, #parse_filters, #query_filter?, #set_custom_opts!, #set_filter_optparse_options!, #with_filter_query
Constructor Details
#initialize ⇒ ListAllCheckedInNodes
Returns a new instance of ListAllCheckedInNodes.
6 7 8 |
# File 'lib/a2/subcommands/infra.rb', line 6 def initialize super('list-nodes', takes_commands: false, query_filter: true) end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 |
# File 'lib/a2/subcommands/infra.rb', line 10 def execute with_filter_query do |query_string| puts JSON.pretty_generate(A2::Client.new(command_parser.data).list_all_checked_in_nodes(query_string)) end end |