Module: Jenkinson
- Defined in:
- lib/jenkinson.rb,
lib/jenkinson/api.rb,
lib/jenkinson/cli.rb,
lib/jenkinson/version.rb
Defined Under Namespace
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.config ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/jenkinson.rb', line 11 def self.config @@config ||= { 'server_url' => ENV['JENKINSON_URL'] || "localhost", 'username' => ENV['JENKINSON_USER'], 'password' => ENV['JENKINSON_PASSWORD'] } end |
.configure {|config| ... } ⇒ Object
7 8 9 |
# File 'lib/jenkinson.rb', line 7 def self.configure(&block) yield(config) end |