diff options
author | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-07-16 21:00:12 -0400 |
---|---|---|
committer | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-07-16 21:00:12 -0400 |
commit | 93c27104cd19d165c981bbedc7980b09b55109b2 (patch) | |
tree | 89cc5c0cc79c8a6974e2b33798c2b68abfb313f2 /genome-bootstrap/lib | |
parent | 1542121d13bf15b7c61b0ce2bf324acd9671c6eb (diff) | |
download | tools-93c27104cd19d165c981bbedc7980b09b55109b2.tar.gz tools-93c27104cd19d165c981bbedc7980b09b55109b2.tar.xz tools-93c27104cd19d165c981bbedc7980b09b55109b2.zip |
Updating genome-bootstrap and cloudmaster to store the repo and ipaddress in the cloud
Diffstat (limited to 'genome-bootstrap/lib')
-rw-r--r-- | genome-bootstrap/lib/genome-bootstrap/core.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/genome-bootstrap/lib/genome-bootstrap/core.rb b/genome-bootstrap/lib/genome-bootstrap/core.rb index 8991753..5c1121c 100644 --- a/genome-bootstrap/lib/genome-bootstrap/core.rb +++ b/genome-bootstrap/lib/genome-bootstrap/core.rb @@ -170,7 +170,11 @@ module GenomeBootstrap end def create_machine(system_name, email) - return Restr.post("#{@cloud}/koan", :system_name => system_name, :repo => @repo.fqdn, :email => email) + return Restr.post("#{@cloud}/koan", :system_name => system_name, :repo => @repo.fqdn, :email => email).split(":") + end + + def update_hostname(id, hostname) + Restr.put("#{@cloud}/koan", :id => id, :hostname => hostname) end end end |