Module: SystemBuilder

Defined in:
lib/system_builder.rb,
lib/system_builder/cli.rb,
lib/system_builder/configurator.rb

Defined Under Namespace

Classes: CLI, DebianBoot, DiskImage, ProcConfigurator, PuppetConfigurator, Task

Constant Summary collapse

VERSION =
'0.0.2'
@@configurations =
{}

Class Method Summary collapse

Class Method Details

.config(name, value = nil, &block) ⇒ Object



9
10
11
12
13
# File 'lib/system_builder.rb', line 9

def self.config(name, value = nil, &block)
  value = (value or block.call)
  puts "* load configuration #{name}"
  @@configurations[name.to_s] = value
end

.configuration(name) ⇒ Object



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

def self.configuration(name)
  @@configurations[name.to_s]
end