Sha256: e7fe7489d15a9696069565f59cc46c0171c6135f5a6fbd8c3adbc84afb9d5b9f

Contents?: true

Size: 610 Bytes

Versions: 324

Compression:

Stored size: 610 Bytes

Contents

module DPL
  class Provider
    module Heroku
      class GitDeployKey < GitSSH
        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

324 entries across 324 versions & 1 rubygems

Version Path
dpl-1.7.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.5.travis.620.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.4.travis.619.1 lib/dpl/provider/heroku/git_deploy_key.rb