hobo-up persists the UUID of the VM
This commit is contained in:
parent
e948ce9663
commit
3631ff0078
|
@ -2,3 +2,4 @@ gembin/*
|
|||
vendor/gems/*
|
||||
pkg/*
|
||||
Hobofile
|
||||
.hobo
|
|
@ -18,7 +18,7 @@ module Hobo
|
|||
|
||||
def persist_uuid(vm)
|
||||
HOBO_LOGGER.info "Persisting the VM UUID (#{vm.uuid})..."
|
||||
# TODO: persist it! dot file in the root (where Hobofile is)
|
||||
Env.persist_uuid(vm.uuid)
|
||||
end
|
||||
|
||||
def setup_mac_address(vm)
|
||||
|
|
|
@ -31,7 +31,11 @@ class VMTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
context "persisting UUID" do
|
||||
# TODO, functionality doesn't exist yet
|
||||
should "persist the UUID with Env" do
|
||||
@vm.stubs(:uuid).returns("FOO")
|
||||
Hobo::Env.expects(:persist_uuid).with(@vm.uuid).once
|
||||
Hobo::VM.persist_uuid(@vm)
|
||||
end
|
||||
end
|
||||
|
||||
context "setting up MAC address" do
|
||||
|
|
Loading…
Reference in New Issue