Class: Kuby::Docker::Layer

Inherits:
Object
  • Object
show all
Defined in:
lib/kuby/docker/layer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment) ⇒ Layer

T::Sig::WithoutRuntime.sig { params(environment: Environment).void }



15
16
17
# File 'lib/kuby/docker/layer.rb', line 15

def initialize(environment)
  @environment = environment
end

Instance Attribute Details

#environmentObject (readonly)

T::Sig::WithoutRuntime.sig { returns(Environment) }



12
13
14
# File 'lib/kuby/docker/layer.rb', line 12

def environment
  @environment
end

Instance Method Details

#apply_to(dockerfile) ⇒ Object

T::Sig::WithoutRuntime.sig { params(dockerfile: Dockerfile).void }

Raises:

  • (NotImplementedError)


20
21
22
23
# File 'lib/kuby/docker/layer.rb', line 20

def apply_to(dockerfile)
  raise NotImplementedError,
    "#{__method__} must be defined in derived classes"
end