Class: CoverBoard::Config

Inherits:
Object
  • Object
show all
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

Class Method Details

.endpointObject



34
35
36
# File 'lib/api/config.rb', line 34

def self.endpoint
  from_yml 'endpoint', ENDPOINT
end

.hostObject



26
27
28
# File 'lib/api/config.rb', line 26

def self.host
  from_yml 'host', HOST
end

.httpsObject



42
43
44
# File 'lib/api/config.rb', line 42

def self.https
  from_yml 'https', HTTPS
end

.passwordObject



22
23
24
# File 'lib/api/config.rb', line 22

def self.password
  from_yml 'password'
end

.portObject



30
31
32
# File 'lib/api/config.rb', line 30

def self.port
  from_yml 'port', PORT
end

.uidObject



14
15
16
# File 'lib/api/config.rb', line 14

def self.uid
  from_yml 'uid'
end

.userObject



18
19
20
# File 'lib/api/config.rb', line 18

def self.user
  from_yml 'user'
end

.verboseObject



38
39
40
# File 'lib/api/config.rb', line 38

def self.verbose
  from_yml 'verbose', false
end