Class: VagrantPlugins::AVF::MachineIdStore
- Inherits:
-
Object
- Object
- VagrantPlugins::AVF::MachineIdStore
- Defined in:
- lib/vagrant_provider_avf/machine_id_store.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #fetch ⇒ Object
-
#initialize(machine) ⇒ MachineIdStore
constructor
A new instance of MachineIdStore.
- #save(machine_id) ⇒ Object
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
#clear ⇒ Object
16 17 18 |
# File 'lib/vagrant_provider_avf/machine_id_store.rb', line 16 def clear @machine.id = nil end |
#fetch ⇒ Object
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 |