Class: VagrantPlugins::MultiHostManager::Provisioner
- Inherits:
-
Object
- Object
- VagrantPlugins::MultiHostManager::Provisioner
show all
- Includes:
- HostsFile
- Defined in:
- lib/vagrant-multihostmanager/provisioner.rb
Instance Method Summary
collapse
Methods included from HostsFile
#update_guest, #update_host
Constructor Details
#initialize(machine, config) ⇒ Provisioner
6
7
8
9
10
|
# File 'lib/vagrant-multihostmanager/provisioner.rb', line 6
def initialize(machine, config)
super(machine, config)
@global_env = machine.env
@provider = machine.provider_name
end
|
Instance Method Details
#provision ⇒ Object
12
13
14
15
16
17
|
# File 'lib/vagrant-multihostmanager/provisioner.rb', line 12
def provision
update_guest(@machine)
if @global_env.config_global.multihostmanager.manage_host?
update_host
end
end
|