Class: Gaptool::InfoCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Gaptool::InfoCommand
- Defined in:
- lib/gaptool-client.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/gaptool-client.rb', line 223 def execute @nodes = Array.new params = hidden? ? {hidden: true} : {} if instance @nodes = [$api.getonenode(instance)] elsif role && environment @nodes = $api.getenvroles(role, environment, params) elsif role && !environment @nodes = $api.getrolenodes(role, params) else @nodes = $api.getallnodes(params) end infohelper(@nodes, parseable?, grepable?) end |