Sha256: 9eec3fbb0c7cd615c44a6cc4b87bde1f616ca4f56b69e0c1c07ce9bb9e31a82a
Contents?: true
Size: 566 Bytes
Versions: 249
Compression:
Stored size: 566 Bytes
Contents
module DPL class Provider module Heroku class Git < Generic requires 'netrc' def git_url "https://git.heroku.com/#{option(:app)}.git" end def push_app git_remote = options[:git] || git_url write_netrc if git_remote.start_with?("https://") context.shell "git push #{git_remote} HEAD:refs/heads/master -f" end def write_netrc n = Netrc.read n['git.heroku.com'] = [user, option(:api_key)] n.save end end end end end
Version data entries
249 entries across 249 versions & 1 rubygems