Class: Blubber::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/blubber/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_registryObject (readonly)

Returns the value of attribute docker_registry.



6
7
8
# File 'lib/blubber/context.rb', line 6

def docker_registry
  @docker_registry
end