Module: VagrantPlugins::Shortcuts

Defined in:
lib/vagrant-shortcuts.rb

Defined Under Namespace

Classes: MissingShortcutError, Plugin, Shortcut, ShortcutsError, UnknownShortcutError

Class Method Summary collapse

Class Method Details

.setup_i18nObject

Get some i18n going



8
9
10
11
# File 'lib/vagrant-shortcuts.rb', line 8

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

.source_rootObject



13
14
15
# File 'lib/vagrant-shortcuts.rb', line 13

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