Sha256: a0a9c2a13488a011e6270ec73ff09d7574d7948d6bad0b5c21293e9334096f95

Contents?: true

Size: 290 Bytes

Versions: 13

Compression:

Stored size: 290 Bytes

Contents

module Kubes::Compiler::Decorator
  class Write < Base
    def process(item)
      case item['kind']
      when "Deployment"
        Resources::Deployment.new(item).run
      when "Pod"
        Resources::Pod.new(item).run
      else
        item # pass through
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kubes-0.3.5 lib/kubes/compiler/decorator/write.rb
kubes-0.3.4 lib/kubes/compiler/decorator/write.rb
kubes-0.3.3 lib/kubes/compiler/decorator/write.rb
kubes-0.3.2 lib/kubes/compiler/decorator/write.rb
kubes-0.3.1 lib/kubes/compiler/decorator/write.rb
kubes-0.3.0 lib/kubes/compiler/decorator/write.rb
kubes-0.2.6 lib/kubes/compiler/decorator/write.rb
kubes-0.2.5 lib/kubes/compiler/decorator/write.rb
kubes-0.2.4 lib/kubes/compiler/decorator/write.rb
kubes-0.2.3 lib/kubes/compiler/decorator/write.rb
kubes-0.2.2 lib/kubes/compiler/decorator/write.rb
kubes-0.2.1 lib/kubes/compiler/decorator/write.rb
kubes-0.2.0 lib/kubes/compiler/decorator/write.rb