Class: Jenkins2::CLI::ListOnlineNode
- Inherits:
-
Jenkins2::CLI
- Object
- Jenkins2::CLI
- Jenkins2::CLI::ListOnlineNode
- Defined in:
- lib/jenkins2/cli/nodes.rb
Instance Attribute Summary
Attributes inherited from Jenkins2::CLI
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Jenkins2::CLI
#call, class_to_command, #initialize, #parse, subcommands
Constructor Details
This class inherits a constructor from Jenkins2::CLI
Class Method Details
.description ⇒ Object
115 116 117 |
# File 'lib/jenkins2/cli/nodes.rb', line 115 def self.description 'Output the online node list.' end |
Instance Method Details
#run ⇒ Object
119 120 121 122 |
# File 'lib/jenkins2/cli/nodes.rb', line 119 def run jc.computer.computer.delete_if{|i| i.offline or i.temporarilyOffline }. collect(&:displayName).join("\n") end |