Module: KubeManifest::DescribeHelper
- Included in:
- Spec
- Defined in:
- lib/kube_manifest/describe.rb
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/kube_manifest/describe.rb', line 115 def self.extended(base) base.class_eval do def self.describe(**defaults, &blk) self.class_variable_set(::KubeManifest::Describe::SPEC_VAR, {}) if defaults.include?(:apiVersion) && !defaults.include?(:kind) defaults[:kind] = self.name.split('::').last end KubeManifest::Describer.append(self, defaults, blk) end end end |