Class: VagrantHosts::Provisioner::Hosts

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

Instance Method Summary collapse

Instance Method Details

#cleanupObject



14
15
16
# File 'lib/vagrant-hosts/provisioner/hosts.rb', line 14

def cleanup
  sync_hosts! if @config.sync_hosts
end

#provisionObject



9
10
11
12
# File 'lib/vagrant-hosts/provisioner/hosts.rb', line 9

def provision
  @machine.guest.capability(:sync_hosts, @config)
  sync_hosts! if @config.sync_hosts
end