Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.326 kb
require 'kumade/deployer'
require 'kumade/thor_task'
module Kumade
def self.app_for(environment)
heroku_git_url = `git remote show -n #{environment} | grep 'Push URL' | cut -d' ' -f6`.strip
match = heroku_git_url.match(/^git@heroku\.com:(.+)\.git$/)
if match
match[1]
else
""
end
end
end
Jump to Line
Something went wrong with that request. Please try again.