class VagrantHosts::Cap::Facts::Base
Base
class for retrieving network facts from guest VMs
@since 2.8.0
Attributes
machine[R]
Public Class Methods
network_facts(machine)
click to toggle source
Retrieve facts from a guest VM
See {#load_facts} for implementation details.
@return [Hash] A hash of facts.
# File lib/vagrant-hosts/cap/facts/base.rb, line 11 def self.network_facts(machine) new(machine).load_facts end
new(machine)
click to toggle source
# File lib/vagrant-hosts/cap/facts/base.rb, line 17 def initialize(machine) @machine = machine end
Public Instance Methods
load_facts()
click to toggle source
# File lib/vagrant-hosts/cap/facts/base.rb, line 21 def load_facts raise NotImplementedError end