Sha256: 0e1a060516991bde7a019fc11a7c93651ed0614ae66617dc9182fdf37f9b5842
Contents?: true
Size: 863 Bytes
Versions: 9
Compression:
Stored size: 863 Bytes
Contents
class KuberKit::Core::Artifacts::Git < KuberKit::Core::Artifacts::AbstractArtifact attr_reader :remote_url, :remote_name, :email, :password, :branch, :ssh_key DEFAULT_SSH_KEY = "id_rsa" DEFAULT_REMOTE_NAME = "origin" DEFAULT_BRANCH = "master" def setup(remote_url:, remote_name: DEFAULT_REMOTE_NAME, branch: DEFAULT_BRANCH, clone_path: nil, ssh_key: DEFAULT_SSH_KEY, cache_result: true) @remote_name = remote_name @remote_url = remote_url @branch = branch @clone_path = clone_path @ssh_key = ssh_key @cache_result = cache_result self end def cloned_path # TODO: We should refactor to not call container here configs = KuberKit::Container['configs'] "#{configs.artifact_clone_dir}/#{name}" end def sync_description "#{remote_url}:#{branch}" end def cleanup_needed? !@cache_result end end
Version data entries
9 entries across 9 versions & 1 rubygems