Class: CoverBoard::Config
- Inherits:
-
Object
- Object
- CoverBoard::Config
- Defined in:
- lib/api/config.rb
Constant Summary collapse
- DOT_FILE =
'.coverboard.yml'
- HTTPS =
true
- HOST =
'aqueous-forest-2696.herokuapp.com'
- PORT =
80
- ENDPOINT =
'/api/metrics'
- @@config =
nil
Class Method Summary collapse
- .endpoint ⇒ Object
- .host ⇒ Object
- .https ⇒ Object
- .password ⇒ Object
- .port ⇒ Object
- .uid ⇒ Object
- .user ⇒ Object
- .verbose ⇒ Object
Class Method Details
.endpoint ⇒ Object
34 35 36 |
# File 'lib/api/config.rb', line 34 def self.endpoint from_yml 'endpoint', ENDPOINT end |
.host ⇒ Object
26 27 28 |
# File 'lib/api/config.rb', line 26 def self.host from_yml 'host', HOST end |
.https ⇒ Object
42 43 44 |
# File 'lib/api/config.rb', line 42 def self.https from_yml 'https', HTTPS end |
.password ⇒ Object
22 23 24 |
# File 'lib/api/config.rb', line 22 def self.password from_yml 'password' end |
.port ⇒ Object
30 31 32 |
# File 'lib/api/config.rb', line 30 def self.port from_yml 'port', PORT end |
.uid ⇒ Object
14 15 16 |
# File 'lib/api/config.rb', line 14 def self.uid from_yml 'uid' end |
.user ⇒ Object
18 19 20 |
# File 'lib/api/config.rb', line 18 def self.user from_yml 'user' end |
.verbose ⇒ Object
38 39 40 |
# File 'lib/api/config.rb', line 38 def self.verbose from_yml 'verbose', false end |