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