Sha256: ddc56e194a4012897e6a2ccdcb7d4ad1d4846ce01627cdba440bdc983e8844b6
Contents?: true
Size: 804 Bytes
Versions: 5
Compression:
Stored size: 804 Bytes
Contents
module DPL class Provider module Heroku class GitDeployKey < GitSSH deprecated( "git-deploy-key strategy is deprecated, and will be shut down on June 26, 2017.", "Please consider moving to the \`api\` or \`git\` strategy." ) def needs_key? false end def check_auth super setup_git_ssh end def setup_git_ssh path = File.expand_path(".dpl/git-ssh") File.open(path, 'w') do |file| file.write "#!/bin/sh\n" file.write "exec ssh -o StrictHostKeychecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -- \"$@\"\n" end chmod(0740, path) context.env['GIT_SSH'] = path end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems