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/mixin/parameters.rb,
lib/nugrant/helper/parameters.rb,
lib/nugrant/vagrant/v2/action.rb,
lib/nugrant/vagrant/v2/helper.rb,
lib/nugrant/vagrant/v2/plugin.rb,
lib/nugrant/helper/env/exporter.rb,
lib/nugrant/vagrant/v2/command/env.rb,
lib/nugrant/vagrant/v2/config/user.rb,
lib/nugrant/vagrant/v2/command/root.rb,
lib/nugrant/vagrant/v2/action/auto_export.rb,
lib/nugrant/vagrant/v2/command/parameters.rb,
lib/nugrant/vagrant/v2/command/restricted_keys.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"2.1.4"

Class Method Summary collapse

Class Method Details

.setup_i18nObject



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

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

.source_rootObject



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

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