class Git
Constants
- DEFAULT_BRANCH
- DEFAULT_REMOTE_NAME
- DEFAULT_SSH_KEY
Attributes
branch[R]
email[R]
password[R]
remote_name[R]
remote_url[R]
ssh_key[R]
Public Instance Methods
cloned_path()
click to toggle source
# File lib/kuber_kit/core/artifacts/git.rb, line 17 def cloned_path # TODO: We should refactor to not call container here configs = KuberKit::Container['configs'] "#{configs.artifact_clone_dir}/#{name}" end
setup(remote_url:, remote_name: DEFAULT_REMOTE_NAME, branch: DEFAULT_BRANCH, clone_path: nil, ssh_key: DEFAULT_SSH_KEY)
click to toggle source
# File lib/kuber_kit/core/artifacts/git.rb, line 8 def setup(remote_url:, remote_name: DEFAULT_REMOTE_NAME, branch: DEFAULT_BRANCH, clone_path: nil, ssh_key: DEFAULT_SSH_KEY) @remote_name = remote_name @remote_url = remote_url @branch = branch @clone_path = clone_path @ssh_key = ssh_key self end