Class: Blubber::Context
- Inherits:
-
Object
- Object
- Blubber::Context
- Defined in:
- lib/blubber/context.rb
Instance Attribute Summary collapse
-
#docker_registry ⇒ Object
readonly
Returns the value of attribute docker_registry.
Instance Method Summary collapse
-
#initialize(docker_registry: nil) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(docker_registry: nil) ⇒ Context
Returns a new instance of Context.
8 9 10 |
# File 'lib/blubber/context.rb', line 8 def initialize(docker_registry: nil) @docker_registry = docker_registry || ENV.fetch('DOCKER_REGISTRY') end |
Instance Attribute Details
#docker_registry ⇒ Object (readonly)
Returns the value of attribute docker_registry.
6 7 8 |
# File 'lib/blubber/context.rb', line 6 def docker_registry @docker_registry end |