Object
# File lib/heroku/kensa/git.rb, line 13 def clone(app_name, template) verify_create(app_name, template) run("git clone #{clone_url(template)} #{app_name}") end
# File lib/heroku/kensa/git.rb, line 27 def clone_url(name) if name.include? "://" #its a full url not on github return name elsif !name.include? "/" #its one of ours name = heroku_prefix + name end "git://github.com/#{name}" end
# File lib/heroku/kensa/git.rb, line 9 def git_installed? `git` rescue false end
# File lib/heroku/kensa/git.rb, line 23 def heroku_prefix ENV["REPO_PREFIX"] || "heroku/kensa-create-" end
Generated with the Darkfish Rdoc Generator 2.