lib/shelly/app.rb in shelly-0.0.58 vs lib/shelly/app.rb in shelly-0.0.59

- old
+ new

@@ -1,7 +1,8 @@ require 'erb' -require "shelly/backup" +require 'launchy' +require 'shelly/backup' module Shelly class App < Model DATABASE_KINDS = %w(postgresql mongodb redis none) SERVER_SIZES = %w(small large) @@ -214,8 +215,12 @@ code_name end def edit_billing_url "#{shelly.shellyapp_url}/apps/#{code_name}/billing/edit" + end + + def open + Launchy.open("http://#{attributes["domain"]}") end end end