Module: Dynosaur::Client::HerokuClient
- Defined in:
- lib/dynosaur/client/heroku_client.rb
Defined Under Namespace
Classes: Config
Class Method Summary collapse
- .api_key ⇒ Object
- .app_name ⇒ Object
- .client ⇒ Object
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
Class Method Details
.api_key ⇒ Object
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_name ⇒ Object
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 |
.client ⇒ Object
15 16 17 |
# File 'lib/dynosaur/client/heroku_client.rb', line 15 def self.client PlatformAPI.connect_oauth(api_key) end |
.config ⇒ Object
7 8 9 |
# File 'lib/dynosaur/client/heroku_client.rb', line 7 def self.config @config ||= Config.new end |
.configure {|config| ... } ⇒ Object
11 12 13 |
# File 'lib/dynosaur/client/heroku_client.rb', line 11 def self.configure yield config if block_given? end |