lib/bushido/app.rb in bushido-0.0.1 vs lib/bushido/app.rb in bushido-0.0.2
- old
+ new
@@ -13,9 +13,15 @@
response.each do |app|
puts app["app"]['subdomain']
end
end
+ def open(name)
+ location = "http://#{name}.#{Bushido::Temple.gsub('http://','')}"
+ puts "Opening \"#{location}\" ..."
+ exec "open #{location}"
+ end
+
def get(name, params={})
url = "#{Temple}/apps/#{name}"
Bushido::Command.get_command(url, params)
end