Class: Mccloud::Config::Mccloud

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(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_pathObject

Returns the value of attribute definition_path.



15
16
17
# File 'lib/mccloud/config/mccloud.rb', line 15

def definition_path
  @definition_path
end

#delimiterObject

Returns the value of attribute delimiter.



11
12
13
# File 'lib/mccloud/config/mccloud.rb', line 11

def delimiter
  @delimiter
end

#envObject (readonly)

Returns the value of attribute env.



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

def env
  @env
end

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#identityObject

Returns the value of attribute identity.



9
10
11
# File 'lib/mccloud/config/mccloud.rb', line 9

def identity
  @identity
end

#loglevelObject

Returns the value of attribute loglevel.



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

def loglevel
  @loglevel
end

#prefixObject

Returns the value of attribute prefix.



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

def prefix
  @prefix
end

#template_pathObject

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_pathObject

Returns the value of attribute vm_path.



16
17
18
# File 'lib/mccloud/config/mccloud.rb', line 16

def vm_path
  @vm_path
end