Class: Proctor::Config::Env
- Inherits:
-
Object
- Object
- Proctor::Config::Env
- Defined in:
- lib/proctor/config/env.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#app_files ⇒ Object
readonly
Returns the value of attribute app_files.
-
#managers ⇒ Object
readonly
Returns the value of attribute managers.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
-
#template_files ⇒ Object
readonly
Returns the value of attribute template_files.
Instance Method Summary collapse
-
#initialize(params) ⇒ Env
constructor
A new instance of Env.
- #set_app_metadata ⇒ Object
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
#app ⇒ Object (readonly)
Returns the value of attribute app.
14 15 16 |
# File 'lib/proctor/config/env.rb', line 14 def app @app end |
#app_files ⇒ Object (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 |
#managers ⇒ Object (readonly)
Returns the value of attribute managers.
13 14 15 |
# File 'lib/proctor/config/env.rb', line 13 def managers @managers end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
13 14 15 |
# File 'lib/proctor/config/env.rb', line 13 def nodes @nodes end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
13 14 15 |
# File 'lib/proctor/config/env.rb', line 13 def services @services end |
#template_files ⇒ Object (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_metadata ⇒ Object
26 27 28 29 |
# File 'lib/proctor/config/env.rb', line 26 def @app['name'] = Dir.pwd.split('/').last @app['gemdir'] = File.('../../../', File.dirname(__FILE__)) end |