Sha256: f618fe0173b2fff2ea5dc1c1b2fbe6e2f600e0de7c27ad6a91beb00fa4c33a2f

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

# Provide an abstract base class for syncing hosts entries
class VagrantHosts::Cap::SyncHosts::Base

  require 'vagrant-hosts/addresses'
  include VagrantHosts::Addresses

  def self.sync_hosts(machine, config)
    new(machine, config).sync!
  end

  def initialize(machine, config)
    @machine, @config = machine, config
    @env = @machine.env
  end

  def sync!
    # call to method not implemented by abstract base class
    update_hosts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-hosts-2.7.0 lib/vagrant-hosts/cap/sync_hosts/base.rb