class A2::Subcommand::NodeMgmt::Search

Public Class Methods

new() click to toggle source
Calls superclass method A2::Paginated::new
# File lib/a2/subcommands/node_mgmt.rb, line 15
def initialize
  super('search', takes_commands: false)
end

Public Instance Methods

execute() click to toggle source
# File lib/a2/subcommands/node_mgmt.rb, line 19
def execute
  with_paginated_filter_json do |json|
    puts JSON.pretty_generate(A2::Client.new(command_parser.data).search_managed_nodes(json))
  end
end