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
160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/gaptool-client.rb', line 160 def execute @nodes = Array.new if instance @nodes = [$api.getonenode(instance)] elsif role && environment @nodes = $api.getenvroles(role, environment) elsif role && !environment @nodes = $api.getrolenodes(role) else @nodes = $api.getallnodes() end infohelper(@nodes, parseable?, grepable?) end |