Class: Gaptool::InfoCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/gaptool_client/commands.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



206
207
208
209
210
211
212
# File 'lib/gaptool_client/commands.rb', line 206

def execute
  params = hidden? ? { hidden: true } : {}
  nodes = Gaptool::API.query_nodes(params.merge(instance: instance,
                                                role: role,
                                                environment: environment))
  Gaptool::Helpers.info(nodes, parseable?, grepable?, short?)
end