Module: Vamboo

Included in:
VambooKernel
Defined in:
lib/vamboo.rb,
lib/vamboo/version.rb

Constant Summary collapse

VERSION =
"1.2.0"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#vamboo_homeObject (readonly)

Returns the value of attribute vamboo_home.



4
5
6
# File 'lib/vamboo.rb', line 4

def vamboo_home
  @vamboo_home
end

Class Method Details

.default_vamboo_homeObject



6
7
8
9
# File 'lib/vamboo.rb', line 6

def self.default_vamboo_home
	vamboo_home = ENV.fetch('VAMBOO_HOME', '/usr/local/etc/vamboo')
  	vamboo_home
end

Instance Method Details

#domainsObject



15
16
17
18
19
# File 'lib/vamboo.rb', line 15

def domains
	vambooFile = VambooFile.new(vamboo_home)
	domains = vambooFile.loadDomains
	domains
end

#findDomain(name, vmhd_path) ⇒ Object



21
22
# File 'lib/vamboo.rb', line 21

def findDomain(name, vmhd_path)
end

#initialize(vamboo_home) ⇒ Object



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

def initialize(vamboo_home)
	@vamboo_home = vamboo_home
end