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.8.37.travis.2118.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.36 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.37.travis.2106.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.36.travis.2099.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.35 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.35.travis.2098.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.35.travis.2090.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.34.travis.2089.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.34 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.2049.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.2048.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.2043.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.2031.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.2025.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.1999.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.33.travis.1976.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.32 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.32.travis.1958.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.32.travis.1957.5 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.8.32.travis.1956.5 lib/dpl/provider/heroku/git_deploy_key.rb