Class: VagrantPlugins::KeyManager::Provisioner

Inherits:
Object
  • Object
show all
Includes:
HostsFile
Defined in:
lib/vagrant-keymanager/provisioner.rb

Instance Method Summary collapse

Methods included from HostsFile

#get_guest_keys

Constructor Details

#initialize(machine, config) ⇒ Provisioner

Returns a new instance of Provisioner.



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/vagrant-keymanager/provisioner.rb', line 6

def initialize(machine, config)
  super(machine, config)
  @global_env = machine.env
  @provider = machine.provider_name

  # config_global is deprecated from v1.5
  if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new('1.5')
    @config = @global_env.vagrantfile.config
  else
    @config = @global_env.config_global
  end

end

Instance Method Details

#provisionObject



20
21
22
# File 'lib/vagrant-keymanager/provisioner.rb', line 20

def provision
  get_guest_keys(@machine)
end