summaryrefslogtreecommitdiffstats
path: root/genome-bootstrap/lib/genome-bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'genome-bootstrap/lib/genome-bootstrap')
-rw-r--r--genome-bootstrap/lib/genome-bootstrap/core.rb6
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