Class: DPL::Provider::Heroku::GitSSH

Inherits:
Git show all
Defined in:
lib/dpl/provider/heroku/git_ssh.rb

Direct Known Subclasses

GitDeployKey

Instance Attribute Summary

Attributes inherited from DPL::Provider

#context, #options

Instance Method Summary collapse

Methods inherited from Git

#push_app, #write_netrc

Methods inherited from Generic

#api, #api_options, #check_app, #check_auth, #deploy, #info, #restart, #run, #user

Methods inherited from DPL::Provider

apt_get, #check_app, #cleanup, #commit_msg, context, #create_key, #deploy, #detect_encoding?, #encoding_for, #error, experimental, #initialize, #log, new, npm_g, #option, pip, requires, #run, #setup_git_credentials, #setup_git_ssh, #sha, shell, #uncleanup, #user_agent, #warn

Constructor Details

This class inherits a constructor from DPL::Provider

Instance Method Details

#git_urlObject



5
6
7
# File 'lib/dpl/provider/heroku/git_ssh.rb', line 5

def git_url
  info['git_url']
end

#needs_key?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/dpl/provider/heroku/git_ssh.rb', line 9

def needs_key?
  true
end

#remove_keyObject



17
18
19
# File 'lib/dpl/provider/heroku/git_ssh.rb', line 17

def remove_key
  api.delete_key(option(:key_name))
end

#setup_key(file) ⇒ Object



13
14
15
# File 'lib/dpl/provider/heroku/git_ssh.rb', line 13

def setup_key(file)
  api.post_key File.read(file)
end