hobo-up persists the UUID of the VM

This commit is contained in:
Mitchell Hashimoto 2010-01-30 23:00:56 -08:00
parent e948ce9663
commit 3631ff0078
3 changed files with 22 additions and 17 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ gembin/*
vendor/gems/*
pkg/*
Hobofile
.hobo

View File

@ -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)

View File

@ -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