Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (13 sloc) 0.326 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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
Something went wrong with that request. Please try again.