Class: VagrantPlugins::AVF::MachineIdStore

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_provider_avf/machine_id_store.rb

Instance Method Summary collapse

Constructor Details

#initialize(machine) ⇒ MachineIdStore

Returns a new instance of MachineIdStore.



4
5
6
# File 'lib/vagrant_provider_avf/machine_id_store.rb', line 4

def initialize(machine)
  @machine = machine
end

Instance Method Details

#clearObject



16
17
18
# File 'lib/vagrant_provider_avf/machine_id_store.rb', line 16

def clear
  @machine.id = nil
end

#fetchObject



8
9
10
# File 'lib/vagrant_provider_avf/machine_id_store.rb', line 8

def fetch
  @machine.id
end

#save(machine_id) ⇒ Object



12
13
14
# File 'lib/vagrant_provider_avf/machine_id_store.rb', line 12

def save(machine_id)
  @machine.id = machine_id
end