Sha256: 5fc31cdef28e27958ab28422ae471e21b7a6647a91a5a9a04edb8d3ac65b5dff

Contents?: true

Size: 640 Bytes

Versions: 16

Compression:

Stored size: 640 Bytes

Contents

# typed: strict

module Kuby
  module Docker
    class Layer
      extend T::Sig
      extend T::Helpers

      abstract!

      sig { returns(Environment) }
      attr_reader :environment

      sig { params(environment: Environment).void }
      def initialize(environment)
        @environment = environment
      end

      sig { params(dockerfile: Dockerfile).void }
      def apply_to(dockerfile)
        raise NotImplementedError,
          "#{__method__} must be defined in derived classes"
      end

      private

      sig { returns(Metadata) }
      def metadata
        environment.docker.metadata
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kuby-core-0.11.16 lib/kuby/docker/layer.rb
kuby-core-0.11.15 lib/kuby/docker/layer.rb
kuby-core-0.11.14 lib/kuby/docker/layer.rb
kuby-core-0.11.13 lib/kuby/docker/layer.rb
kuby-core-0.11.12 lib/kuby/docker/layer.rb
kuby-core-0.11.11 lib/kuby/docker/layer.rb
kuby-core-0.11.10 lib/kuby/docker/layer.rb
kuby-core-0.11.9 lib/kuby/docker/layer.rb
kuby-core-0.11.8 lib/kuby/docker/layer.rb
kuby-core-0.11.7 lib/kuby/docker/layer.rb
kuby-core-0.11.6 lib/kuby/docker/layer.rb
kuby-core-0.11.4 lib/kuby/docker/layer.rb
kuby-core-0.11.3 lib/kuby/docker/layer.rb
kuby-core-0.11.2 lib/kuby/docker/layer.rb
kuby-core-0.11.1 lib/kuby/docker/layer.rb
kuby-core-0.11.0 lib/kuby/docker/layer.rb