Sha256: c11675b2e2038ccaa19ff2bfe0c5745f69746f254b31817a8758b65dd1f39ad2

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

module Hako
  class Container
    def initialize(definition)
      @definition = definition
    end

    %w[
      image_tag
      docker_labels
    ].each do |name|
      define_method(name) do
        @definition[name]
      end

      define_method("#{name}=") do |val|
        @definition[name] = val
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hako-0.3.1 lib/hako/container.rb
hako-0.3.0 lib/hako/container.rb