Module: VagrantPlugins::OneAndOne

Defined in:
lib/vagrant-oneandone.rb,
lib/vagrant-oneandone/action.rb,
lib/vagrant-oneandone/config.rb,
lib/vagrant-oneandone/errors.rb,
lib/vagrant-oneandone/plugin.rb,
lib/vagrant-oneandone/version.rb,
lib/vagrant-oneandone/provider.rb,
lib/vagrant-oneandone/command/main.rb,
lib/vagrant-oneandone/action/create.rb,
lib/vagrant-oneandone/action/reload.rb,
lib/vagrant-oneandone/command/utils.rb,
lib/vagrant-oneandone/action/destroy.rb,
lib/vagrant-oneandone/action/power_on.rb,
lib/vagrant-oneandone/config_resolver.rb,
lib/vagrant-oneandone/action/get_state.rb,
lib/vagrant-oneandone/action/power_off.rb,
lib/vagrant-oneandone/command/list_ips.rb,
lib/vagrant-oneandone/action/read_state.rb,
lib/vagrant-oneandone/command/list_sizes.rb,
lib/vagrant-oneandone/action/connect_1and1.rb,
lib/vagrant-oneandone/action/read_ssh_info.rb,
lib/vagrant-oneandone/command/list_servers.rb,
lib/vagrant-oneandone/command/list_firewalls.rb,
lib/vagrant-oneandone/command/list_appliances.rb,
lib/vagrant-oneandone/command/list_datacenters.rb,
lib/vagrant-oneandone/command/list_load_balancers.rb,
lib/vagrant-oneandone/command/list_monitor_policies.rb

Defined Under Namespace

Modules: Action, Command, Errors Classes: Config, ConfigResolver, Plugin, Provider

Constant Summary collapse

VERSION =
'1.0.1'.freeze

Class Method Summary collapse

Class Method Details

.init_i18nObject



21
22
23
24
# File 'lib/vagrant-oneandone.rb', line 21

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

.public_key(private_key_path) ⇒ Object



15
16
17
18
19
# File 'lib/vagrant-oneandone.rb', line 15

def self.public_key(private_key_path)
  File.read("#{private_key_path}.pub")
rescue
  raise Errors::PublicKeyError, key: "#{private_key_path}.pub"
end

.source_rootObject



11
12
13
# File 'lib/vagrant-oneandone.rb', line 11

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