Class: Jenkins2::CLI::ListNode

Inherits:
Jenkins2::CLI show all
Defined in:
lib/jenkins2/cli/nodes.rb

Instance Attribute Summary

Attributes inherited from Jenkins2::CLI

#errors, #options

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

.descriptionObject



105
106
107
# File 'lib/jenkins2/cli/nodes.rb', line 105

def self.description
	'Output the node list.'
end

Instance Method Details

#runObject



109
110
111
# File 'lib/jenkins2/cli/nodes.rb', line 109

def run
	jc.computer.computer.collect(&:displayName).join("\n")
end