Module: Jenkinson

Defined in:
lib/jenkinson.rb,
lib/jenkinson/api.rb,
lib/jenkinson/cli.rb,
lib/jenkinson/version.rb

Defined Under Namespace

Classes: API, CLI

Constant Summary collapse

Hub =
API.new(self.config)
VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.configObject



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

Yields:



7
8
9
# File 'lib/jenkinson.rb', line 7

def self.configure(&block)
  yield(config)
end