Sha256: 791af3874812216bcb093c26f20ef3b9b40bd1a755f547c587f8981d0f07e16d
Contents?: true
Size: 606 Bytes
Versions: 12
Compression:
Stored size: 606 Bytes
Contents
class Kamal::Configuration::Registry include Kamal::Configuration::Validation attr_reader :registry_config def initialize(config:) @registry_config = config.raw_config.registry || {} validate! registry_config, with: Kamal::Configuration::Validator::Registry end def server registry_config["server"] end def username lookup("username") end def password lookup("password") end private def lookup(key) if registry_config[key].is_a?(Array) ENV.fetch(registry_config[key].first).dup else registry_config[key] end end end
Version data entries
12 entries across 12 versions & 1 rubygems