Sha256: ef6a650c8203c8f037d713c86b91fe44d408771b7f72502d2068939b1adf760e

Contents?: true

Size: 387 Bytes

Versions: 105

Compression:

Stored size: 387 Bytes

Contents

class KuberKit::Core::Registries::Registry < KuberKit::Core::Registries::AbstractRegistry
  def set_remote_url(remote_url)
    @remote_url = remote_url
    
    self
  end
  alias_method :setup, :set_remote_url

  def path
    name.to_s
  end

  def remote_path
    [@remote_url, path].compact.join("/")
  end

  def remote?
    !local?
  end

  def local?
    @remote_url.nil?
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
kuber_kit-0.1.4 lib/kuber_kit/core/registries/registry.rb
kuber_kit-0.1.3 lib/kuber_kit/core/registries/registry.rb
kuber_kit-0.1.2 lib/kuber_kit/core/registries/registry.rb
kuber_kit-0.1.1 lib/kuber_kit/core/registries/registry.rb
kuber_kit-0.1.0 lib/kuber_kit/core/registries/registry.rb