Class: Proctor::Config::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/proctor/config/env.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Env

Returns a new instance of Env.



16
17
18
19
20
21
22
23
24
# File 'lib/proctor/config/env.rb', line 16

def initialize(params)
  @template_files = TemplateFiles.new(params)
  @app_files      = AppFiles.new(params)
  @managers       = Managers.new(@app_files, params)
  @services       = Services.new(@app_files, params)
  @nodes          = Nodes.new(@app_files, params)
  @app            = {}
  
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



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

def app
  @app
end

#app_filesObject (readonly)

Returns the value of attribute app_files.



13
14
15
# File 'lib/proctor/config/env.rb', line 13

def app_files
  @app_files
end

#managersObject (readonly)

Returns the value of attribute managers.



13
14
15
# File 'lib/proctor/config/env.rb', line 13

def managers
  @managers
end

#nodesObject (readonly)

Returns the value of attribute nodes.



13
14
15
# File 'lib/proctor/config/env.rb', line 13

def nodes
  @nodes
end

#servicesObject (readonly)

Returns the value of attribute services.



13
14
15
# File 'lib/proctor/config/env.rb', line 13

def services
  @services
end

#template_filesObject (readonly)

Returns the value of attribute template_files.



12
13
14
# File 'lib/proctor/config/env.rb', line 12

def template_files
  @template_files
end

Instance Method Details

#set_app_metadataObject



26
27
28
29
# File 'lib/proctor/config/env.rb', line 26

def 
  @app['name']   = Dir.pwd.split('/').last
  @app['gemdir'] = File.expand_path('../../../', File.dirname(__FILE__))
end