Module: VagrantPlugins::Shortcuts
- Defined in:
- lib/vagrant-shortcuts.rb
Defined Under Namespace
Classes: MissingShortcutError, Plugin, Shortcut, ShortcutsError, UnknownShortcutError
Class Method Summary collapse
-
.setup_i18n ⇒ Object
Get some i18n going.
- .source_root ⇒ Object
Class Method Details
.setup_i18n ⇒ Object
Get some i18n going
8 9 10 11 |
# File 'lib/vagrant-shortcuts.rb', line 8 def self.setup_i18n I18n.load_path << File.('locales/en.yml', source_root) I18n.reload! end |
.source_root ⇒ Object
13 14 15 |
# File 'lib/vagrant-shortcuts.rb', line 13 def self.source_root @source_root ||= Pathname.new(File.("../../", __FILE__)) end |