Class: Jenkins2::CLI::WhoAmI
- Inherits:
-
Jenkins2::CLI
- Object
- Jenkins2::CLI
- Jenkins2::CLI::WhoAmI
- Defined in:
- lib/jenkins2/cli/user.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
6 7 8 |
# File 'lib/jenkins2/cli/user.rb', line 6 def self.description 'Report your credentials.' end |
Instance Method Details
#run ⇒ Object
10 11 12 13 |
# File 'lib/jenkins2/cli/user.rb', line 10 def run r = jc.me.subject %w[id fullName description].collect{|p| "#{p}: #{r[p]}" }.join "\n" end |