Module: Vagrant::Hmurca

Defined in:
lib/vagrant/hmurca.rb,
lib/vagrant/hmurca/errors.rb,
lib/vagrant/hmurca/command.rb,
lib/vagrant/hmurca/version.rb,
lib/vagrant/hmurca/config_parser.rb

Defined Under Namespace

Modules: ConfigParser Classes: Command, Error, GeneralProcessor, Generator, InvalidBooleanValueError, InvalidDomainNameError, InvalidIntegerValueError, InvalidNodeNameError, NoDomainSpecifiedError, NoNodeCpusCountSpecifiedError, NoNodeMemorySizeSpecifiedError, NoNodeNameSpecifiedError, NodeDuplicatedError, NodeForwardPortDuplicatedError, NodeGroupProcessor, ParserError, Plugin, SyncedFolderNotFoundError

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.configure!Object

Public: Sets up vagrant configuration.



22
23
24
25
26
27
28
29
30
31
# File 'lib/vagrant/hmurca.rb', line 22

def self.configure!
  begin
    config_file = File.join(Dir.pwd, "hmurca.conf")
    $CONF = ConfigParser.parse_file(config_file)
    load(File.expand_path("../hmurca/vagrantfile.rb", __FILE__))
  rescue ParserError, Errno::ENOENT => err
    $stderr.write("ERROR: #{err.to_s}\n")
    exit(1)
  end
end