class Indocker::Repositories::Git
Constants
- DEFAULT_SSH_KEY
Attributes
branch[R]
email[R]
password[R]
remote_name[R]
remote_url[R]
ssh_key[R]
Public Instance Methods
clone_path()
click to toggle source
# File lib/indocker/repositories/git.rb, line 21 def clone_path @clone_path || "/tmp/#{Indocker.configuration.name}/repositories/git/#{project_name}/#{branch}" end
project_name()
click to toggle source
# File lib/indocker/repositories/git.rb, line 17 def project_name @remote_url.split('/').last.gsub('.git', '') end
setup(remote_name:, remote_url:, email: nil, password: nil, branch:, clone_path: nil, ssh_key: DEFAULT_SSH_KEY)
click to toggle source
# File lib/indocker/repositories/git.rb, line 6 def setup(remote_name:, remote_url:, email: nil, password: nil, branch:, clone_path: nil, ssh_key: DEFAULT_SSH_KEY) @remote_name = remote_name @remote_url = remote_url @email = email @password = password @branch = branch @clone_path = clone_path @ssh_key = ssh_key self end