Sha256: 14258fc868c6a98154b5a1ae9fa9b126208bf87aca6fbd1cd4e53fa33aa81e37

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

# Base class for retrieving network facts from guest VMs
#
# @since 2.8.0
class VagrantHosts::Cap::Facts::Base

  # Retrieve facts from a guest VM
  #
  # See {#load_facts} for implementation details.
  #
  # @return [Hash] A hash of facts.
  def self.network_facts(machine)
    new(machine).load_facts
  end

  attr_reader :machine

  def initialize(machine)
    @machine = machine
  end

  def load_facts
    raise NotImplementedError
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-hosts-2.9.0 lib/vagrant-hosts/cap/facts/base.rb
vagrant-hosts-2.8.3 lib/vagrant-hosts/cap/facts/base.rb