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