Module: VagrantPlugins::RekeySSH

Defined in:
lib/vagrant-rekey-ssh.rb,
lib/vagrant-rekey-ssh/config.rb,
lib/vagrant-rekey-ssh/errors.rb,
lib/vagrant-rekey-ssh/plugin.rb,
lib/vagrant-rekey-ssh/helpers.rb,
lib/vagrant-rekey-ssh/version.rb,
lib/vagrant-rekey-ssh/actions/ssh_info.rb,
lib/vagrant-rekey-ssh/actions/secure_box.rb

Defined Under Namespace

Modules: Errors, Helpers Classes: ActionSSHInfo, ActionSecureBox, Config, Plugin

Constant Summary collapse

VERSION =
"0.1.7"

Class Method Summary collapse

Class Method Details

.init_i18nObject

This initializes the i18n load path so that the plugin-specific translations work.



11
12
13
14
# File 'lib/vagrant-rekey-ssh.rb', line 11

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

.source_rootPathname

This returns the path to the source of this plugin.

Returns:

  • (Pathname)


19
20
21
# File 'lib/vagrant-rekey-ssh.rb', line 19

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