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.14.travis.847.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.846.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.843.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.842.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.841.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.839.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.837.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.13.travis.825.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.807.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.797.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.793.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.784.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.783.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.774.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.773.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.766.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.764.4 lib/dpl/provider/heroku/git_deploy_key.rb
dpl-1.7.12.travis.763.4 lib/dpl/provider/heroku/git_deploy_key.rb