Class: Kubes::Compiler::Decorator::Pre

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/compiler/decorator/pre.rb

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#initialize, #result, #run

Constructor Details

This class inherits a constructor from Kubes::Compiler::Decorator::Base

Instance Method Details

#processObject



3
4
5
6
7
8
9
10
# File 'lib/kubes/compiler/decorator/pre.rb', line 3

def process
  case @data['kind']
  when "ConfigMap", "Secret"
    Hashable.new(@data).store
  else
    @data # passthrough
  end
end