hobo-up persists the UUID of the VM
This commit is contained in:
parent
e948ce9663
commit
3631ff0078
|
@ -2,3 +2,4 @@ gembin/*
|
||||||
vendor/gems/*
|
vendor/gems/*
|
||||||
pkg/*
|
pkg/*
|
||||||
Hobofile
|
Hobofile
|
||||||
|
.hobo
|
|
@ -18,7 +18,7 @@ module Hobo
|
||||||
|
|
||||||
def persist_uuid(vm)
|
def persist_uuid(vm)
|
||||||
HOBO_LOGGER.info "Persisting the VM UUID (#{vm.uuid})..."
|
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
|
end
|
||||||
|
|
||||||
def setup_mac_address(vm)
|
def setup_mac_address(vm)
|
||||||
|
|
|
@ -31,7 +31,11 @@ class VMTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
context "persisting UUID" do
|
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
|
end
|
||||||
|
|
||||||
context "setting up MAC address" do
|
context "setting up MAC address" do
|
||||||
|
|
Loading…
Reference in New Issue