Sha256: e3fa59f3a2e8c3ea4cfa86eb55f815ca97efcebb70224b13fbc346229ef7ca2e

Contents?: true

Size: 360 Bytes

Versions: 30

Compression:

Stored size: 360 Bytes

Contents

class Kamal::Commands::Registry < Kamal::Commands::Base
  delegate :registry, to: :config

  def login
    docker :login,
      registry.server,
      "-u", sensitive(Kamal::Utils.escape_shell_value(registry.username)),
      "-p", sensitive(Kamal::Utils.escape_shell_value(registry.password))
  end

  def logout
    docker :logout, registry.server
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
kamal-2.4.0 lib/kamal/commands/registry.rb
nocoffee-kamal-2.3.0.3 lib/kamal/commands/registry.rb
nocoffee-kamal-2.3.0.2 lib/kamal/commands/registry.rb
nocoffee-kamal-2.3.0.1 lib/kamal/commands/registry.rb
kamal-2.3.0 lib/kamal/commands/registry.rb
kamal-2.2.2 lib/kamal/commands/registry.rb
kamal-2.2.1 lib/kamal/commands/registry.rb
kamal-2.2.0 lib/kamal/commands/registry.rb
kamal-1.9.2 lib/kamal/commands/registry.rb
kamal-2.1.2 lib/kamal/commands/registry.rb
kamal-2.1.1 lib/kamal/commands/registry.rb
kamal-2.1.0 lib/kamal/commands/registry.rb
kamal-1.9.1 lib/kamal/commands/registry.rb
kamal-2.0.0 lib/kamal/commands/registry.rb
kamal-1.9.0 lib/kamal/commands/registry.rb
kamal-2.0.0.rc4 lib/kamal/commands/registry.rb
kamal-2.0.0.rc3 lib/kamal/commands/registry.rb
kamal-2.0.0.rc2 lib/kamal/commands/registry.rb
kamal-2.0.0.rc1 lib/kamal/commands/registry.rb
kamal-2.0.0.beta2 lib/kamal/commands/registry.rb