Class: Mccloud::Config::Mccloud
- Inherits:
-
Object
- Object
- Mccloud::Config::Mccloud
- Defined in:
- lib/mccloud/config/mccloud.rb
Instance Attribute Summary collapse
-
#definition_path ⇒ Object
Returns the value of attribute definition_path.
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#identity ⇒ Object
Returns the value of attribute identity.
-
#loglevel ⇒ Object
Returns the value of attribute loglevel.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#template_path ⇒ Object
Returns the value of attribute template_path.
-
#vm_path ⇒ Object
Returns the value of attribute vm_path.
Instance Method Summary collapse
-
#initialize(config) ⇒ Mccloud
constructor
A new instance of Mccloud.
Constructor Details
#initialize(config) ⇒ Mccloud
Returns a new instance of Mccloud.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/mccloud/config/mccloud.rb', line 18 def initialize(config) @env=config.env @prefix="mccloud" @environment="" @identity="" @delimiter="-" @loglevel=:info @template_path=File.(File.join(File.dirname(__FILE__),'..','..','..','templates')) @definition_path=File.join(@env.root_path,"definitions") @vm_path=File.join(@env.root_path,"vms") env.logger.debug("done loading the mccloud setting") end |
Instance Attribute Details
#definition_path ⇒ Object
Returns the value of attribute definition_path.
15 16 17 |
# File 'lib/mccloud/config/mccloud.rb', line 15 def definition_path @definition_path end |
#delimiter ⇒ Object
Returns the value of attribute delimiter.
11 12 13 |
# File 'lib/mccloud/config/mccloud.rb', line 11 def delimiter @delimiter end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
5 6 7 |
# File 'lib/mccloud/config/mccloud.rb', line 5 def env @env end |
#environment ⇒ Object
Returns the value of attribute environment.
8 9 10 |
# File 'lib/mccloud/config/mccloud.rb', line 8 def environment @environment end |
#identity ⇒ Object
Returns the value of attribute identity.
9 10 11 |
# File 'lib/mccloud/config/mccloud.rb', line 9 def identity @identity end |
#loglevel ⇒ Object
Returns the value of attribute loglevel.
12 13 14 |
# File 'lib/mccloud/config/mccloud.rb', line 12 def loglevel @loglevel end |
#prefix ⇒ Object
Returns the value of attribute prefix.
7 8 9 |
# File 'lib/mccloud/config/mccloud.rb', line 7 def prefix @prefix end |
#template_path ⇒ Object
Returns the value of attribute template_path.
14 15 16 |
# File 'lib/mccloud/config/mccloud.rb', line 14 def template_path @template_path end |
#vm_path ⇒ Object
Returns the value of attribute vm_path.
16 17 18 |
# File 'lib/mccloud/config/mccloud.rb', line 16 def vm_path @vm_path end |