Module: Dynosaur::Client::HerokuClient

Defined in:
lib/dynosaur/client/heroku_client.rb

Defined Under Namespace

Classes: Config

Class Method Summary collapse

Class Method Details

.api_keyObject



23
24
25
# File 'lib/dynosaur/client/heroku_client.rb', line 23

def self.api_key
  config.api_key || fail('api_key must be set in the config')
end

.app_nameObject



19
20
21
# File 'lib/dynosaur/client/heroku_client.rb', line 19

def self.app_name
  config.app_name || fail('app_name must be set in the config')
end

.clientObject



15
16
17
# File 'lib/dynosaur/client/heroku_client.rb', line 15

def self.client
  PlatformAPI.connect_oauth(api_key)
end

.configObject



7
8
9
# File 'lib/dynosaur/client/heroku_client.rb', line 7

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



11
12
13
# File 'lib/dynosaur/client/heroku_client.rb', line 11

def self.configure
  yield config if block_given?
end