Sha256: dcbaf9f81f47611a1d4517717684cdc32e267b714ed4e5533656b4083b17f163

Contents?: true

Size: 599 Bytes

Versions: 105

Compression:

Stored size: 599 Bytes

Contents

module DPL
  class Provider
    module Heroku
      class GitDeployKey < Git
        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)
          ENV['GIT_SSH'] = path
        end
      end
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
dpl-1.7.4.travis.600.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.3 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.3.travis.597.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.3.travis.594.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.592.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.591.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.589.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.588.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.586.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.584.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.582.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.581.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.2.travis.579.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.1.travis.578.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.1.travis.577.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.1.travis.575.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.1.travis.570.1 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.1.travis.567.1 lib/dpl/provider/heroku/git_deploy_key.rb