Class: VagrantPlugins::HostManager::Provisioner
- Inherits:
-
Object
- Object
- VagrantPlugins::HostManager::Provisioner
- Defined in:
- lib/vagrant-hostmanager/provisioner.rb
Instance Method Summary collapse
-
#initialize(machine, config) ⇒ Provisioner
constructor
A new instance of Provisioner.
- #provision ⇒ Object
Constructor Details
#initialize(machine, config) ⇒ Provisioner
Returns a new instance of Provisioner.
7 8 9 10 11 12 |
# File 'lib/vagrant-hostmanager/provisioner.rb', line 7 def initialize(machine, config) super(machine, config) global_env = machine.env @config = Util.get_config(global_env) @updater = HostsFile::Updater.new(global_env, machine.provider_name) end |
Instance Method Details
#provision ⇒ Object
14 15 16 17 18 19 |
# File 'lib/vagrant-hostmanager/provisioner.rb', line 14 def provision @updater.update_guest(@machine) if @config.hostmanager.manage_host? @updater.update_host end end |