Sha256: c91d08556085b287149f70e2fa012d33aca805dad31b1a356a374ef5cf1e2b66
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
module Hatchet # used for deploying a test app to heroku via git class GitApp < App BUILDPACK_URL = "https://github.com/heroku/heroku-buildpack-ruby.git" def initialize(directory, options = {}) @buildpack = options[:buildpack] || options[:buildpack_url] || BUILDPACK_URL super end def setup! super heroku.put_config_vars(name, 'BUILDPACK_URL' => @buildpack) end def git_repo "git@heroku.com:#{name}.git" end def push! output = `git push #{git_repo} master 2>&1` if !$?.success? raise FailedDeploy.new(self, output) unless @allow_failure end return output end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
heroku_hatchet-1.0.0 | lib/hatchet/git_app.rb |
heroku_hatchet-0.2.0 | lib/hatchet/git_app.rb |
heroku_hatchet-0.1.1 | lib/hatchet/git_app.rb |
heroku_hatchet-0.1.0 | lib/hatchet/git_app.rb |