lib/bushido/app.rb in bushido-0.0.10 vs lib/bushido/app.rb in bushido-0.0.11
- old
+ new
@@ -66,10 +66,19 @@
def subdomain
get()["app"]["subdomain"]
end
+ def subdomain_available?(subdomain)
+ begin
+ return put :subdomain_available?, {:subdomain => subdomain}
+ rescue RestClient::UnprocessableEntity
+ return false
+ end
+ end
+
+
def set_subdomain(subdomain)
put :set_subdomain, {:subdomain => subdomain}
end
@@ -81,15 +90,16 @@
def remove_domain(domain)
put :remove_domain, {:domain => domain}
end
- def clear_logs
- put :clear_logs
+ def clear_log!(name)
+ put :clear_log!, {:name => name}
end
+ # TODO: Update to use the new logs controller
def logs
get({:gift => "logs"})
end
@@ -97,6 +107,5 @@
get({:gift => "ssh_key"})["ssh_key"]
end
end
end
end
-