Class: EnvConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/heroploy/config/env_config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#appObject

Returns the value of attribute app.



6
7
8
# File 'lib/heroploy/config/env_config.rb', line 6

def app
  @app
end

#checksObject

Returns the value of attribute checks.



8
9
10
# File 'lib/heroploy/config/env_config.rb', line 8

def checks
  @checks
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/heroploy/config/env_config.rb', line 4

def name
  @name
end

#remoteObject

Returns the value of attribute remote.



5
6
7
# File 'lib/heroploy/config/env_config.rb', line 5

def remote
  @remote
end

#tagObject

Returns the value of attribute tag.



7
8
9
# File 'lib/heroploy/config/env_config.rb', line 7

def tag
  @tag
end

Class Method Details

.parse(name, attrs) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/heroploy/config/env_config.rb', line 10

def self.parse(name, attrs)
  config = EnvConfig.new
  
  config.name = name
  config.remote = attrs['remote'] || name
  config.app = attrs['app']
  config.tag = attrs['tag']
  config.checks = ChecksConfig.parse(attrs['checks'])

  config
end