Class: Kamal::Configuration::Registry
- Inherits:
-
Object
- Object
- Kamal::Configuration::Registry
show all
- Includes:
- Validation
- Defined in:
- lib/kamal/configuration/registry.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Validation
#validate!, #validation_yml
Constructor Details
#initialize(config:) ⇒ Registry
Returns a new instance of Registry.
6
7
8
9
|
# File 'lib/kamal/configuration/registry.rb', line 6
def initialize(config:)
@registry_config = config.raw_config.registry || {}
validate! registry_config, with: Kamal::Configuration::Validator::Registry
end
|
Instance Attribute Details
#registry_config ⇒ Object
Returns the value of attribute registry_config.
4
5
6
|
# File 'lib/kamal/configuration/registry.rb', line 4
def registry_config
@registry_config
end
|
Instance Method Details
#password ⇒ Object
19
20
21
|
# File 'lib/kamal/configuration/registry.rb', line 19
def password
lookup("password")
end
|
#server ⇒ Object
11
12
13
|
# File 'lib/kamal/configuration/registry.rb', line 11
def server
registry_config["server"]
end
|
#username ⇒ Object
15
16
17
|
# File 'lib/kamal/configuration/registry.rb', line 15
def username
lookup("username")
end
|