Class: Kustomize::TransformerPlugin

Inherits:
Plugin
  • Object
show all
Defined in:
lib/kustomize/transformer_plugin.rb

Direct Known Subclasses

CovalentKustomizer::TestTransformer

Instance Attribute Summary

Attributes inherited from Plugin

#session

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Plugin

create, kustomize_plugin_match_api_version, kustomize_plugin_match_kind, match_on

Class Method Details

.inherited(subklass) ⇒ Object



4
5
6
7
# File 'lib/kustomize/transformer_plugin.rb', line 4

def self.inherited(subklass)
  reg = Kustomize::PluginRegistry.instance
  reg.probe_queue.push(subklass)
end

Instance Method Details

#rewrite(rc) ⇒ Object



13
14
15
# File 'lib/kustomize/transformer_plugin.rb', line 13

def rewrite(rc)
  rc
end

#rewrite_all(rcs) ⇒ Object



9
10
11
# File 'lib/kustomize/transformer_plugin.rb', line 9

def rewrite_all(rcs)
  rcs.map{ |rc| rewrite(rc) }
end