Class: DPL::Provider::Heroku::GitDeployKey
- Inherits:
-
Git
- Object
- DPL::Provider
- Git
- DPL::Provider::Heroku::GitDeployKey
- Defined in:
- lib/dpl/provider/heroku/git_deploy_key.rb
Instance Attribute Summary
Attributes inherited from DPL::Provider
Instance Method Summary collapse
Methods inherited from Git
#api, #check_app, #deploy, #push_app, #remove_key, #restart, #run, #setup_key, #user
Methods inherited from DPL::Provider
apt_get, #check_app, #cleanup, context, #create_key, #deploy, #error, experimental, #initialize, #log, new, npm_g, #option, pip, requires, #run, #setup_git_credentials, #sha, shell, #uncleanup
Constructor Details
This class inherits a constructor from DPL::Provider
Instance Method Details
#check_auth ⇒ Object
9 10 11 12 |
# File 'lib/dpl/provider/heroku/git_deploy_key.rb', line 9 def check_auth super setup_git_ssh end |
#needs_key? ⇒ Boolean
5 6 7 |
# File 'lib/dpl/provider/heroku/git_deploy_key.rb', line 5 def needs_key? false end |
#setup_git_ssh ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/dpl/provider/heroku/git_deploy_key.rb', line 14 def setup_git_ssh path = File.(".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 |