Sha256: f4badd74b69ae9c09de8b92cc5e8de51572f530d296669c583d941e23ee3771b

Contents?: true

Size: 702 Bytes

Versions: 83

Compression:

Stored size: 702 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)
    @remote_name = remote_name
    @remote_url = remote_url
    @branch = branch
    @clone_path = clone_path
    @ssh_key = ssh_key
    self
  end

  def cloned_path
    # TODO: We should refactor to not call container here
    configs = KuberKit::Container['configs']
    "#{configs.artifact_clone_dir}/#{name}"
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
kuber_kit-1.2.0 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-1.1.1 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-1.0.1 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-1.0.0 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.9 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.8 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.7 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.6 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.5 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.4 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.3 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.2 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.1 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.9.0 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.8.8 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.8.7 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.8.6 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.8.5 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.8.4 lib/kuber_kit/core/artifacts/git.rb
kuber_kit-0.8.3 lib/kuber_kit/core/artifacts/git.rb