Sha256: 999925b15b692bd818e34e1d0538389bc31907123bd4d7915401a61b4cbdcc39

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

module SystemBuilder
  VERSION = '0.0.5'

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

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

end

require 'system_builder/core_ext'
require 'system_builder/image'
require 'system_builder/boot'
require 'system_builder/configurator'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
system-builder-0.0.5 lib/system_builder.rb