Sha256: 144f5c4c6e4003eca7864f75a3927cefe9667401ef4554d59685e26a4c76712c

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

module DPL
  class Provider
    module Heroku
      class GitDeployKey < Git
        def needs_key?
          false
        end

        def check_auth
          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

1 entries across 1 versions & 1 rubygems

Version Path
dpl-1.7.2.travis.590.1 lib/dpl/provider/heroku/git_deploy_key.rb