Module: Nugrant

Defined in:
lib/nugrant.rb,
lib/nugrant/bag.rb,
lib/nugrant/config.rb,
lib/nugrant/version.rb,
lib/nugrant/helper/bag.rb,
lib/nugrant/parameters.rb,
lib/nugrant/helper/yaml.rb,
lib/nugrant/helper/stack.rb,
lib/nugrant/vagrant/errors.rb,
lib/nugrant/helper/env/namer.rb,
lib/nugrant/vagrant/v2/plugin.rb,
lib/nugrant/helper/env/exporter.rb,
lib/nugrant/vagrant/v1/command/env.rb,
lib/nugrant/vagrant/v1/config/user.rb,
lib/nugrant/vagrant/v2/command/env.rb,
lib/nugrant/vagrant/v2/config/user.rb,
lib/nugrant/vagrant/v1/command/root.rb,
lib/nugrant/vagrant/v2/command/root.rb,
lib/nugrant/vagrant/v1/command/parameters.rb,
lib/nugrant/vagrant/v2/command/parameters.rb

Defined Under Namespace

Modules: Helper, Vagrant Classes: Bag, Config, Parameters

Constant Summary collapse

VERSION =
"1.4.0"

Class Method Summary collapse

Class Method Details

.create_parameters(options) ⇒ Object



11
12
13
14
15
# File 'lib/nugrant.rb', line 11

def self.create_parameters(options)
  config = Nugrant::Config.new(options)

  return Nugrant::Parameters.new(config)
end

.setup_i18nObject



17
18
19
20
# File 'lib/nugrant.rb', line 17

def self.setup_i18n()
  I18n.load_path << File.expand_path("locales/en.yml", Nugrant.source_root)
  I18n.reload!
end

.source_rootObject



22
23
24
# File 'lib/nugrant.rb', line 22

def self.source_root
  @source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
end