Sha256: c4c3f1b1bedc60c1f1314157e0e00ca92db464b7dfdf4bcf21e0b1925f83d69b

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

module Kuby
  module Docker
    class Layer
      attr_reader :definition

      def initialize(definition)
        @definition = definition
      end

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

      private

      def metadata
        definition.docker.metadata
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kuby-core-0.7.2 lib/kuby/docker/layer.rb
kuby-core-0.7.1 lib/kuby/docker/layer.rb
kuby-core-0.7.0 lib/kuby/docker/layer.rb
kuby-core-0.6.1 lib/kuby/docker/layer.rb
kuby-core-0.6.0 lib/kuby/docker/layer.rb