Class: Orchparty::Kubernetes::Builder
- Inherits:
-
Object
- Object
- Orchparty::Kubernetes::Builder
show all
- Defined in:
- lib/orchparty/dsl_parser_kubernetes.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.build(*args, block) ⇒ Object
23
24
25
26
27
|
# File 'lib/orchparty/dsl_parser_kubernetes.rb', line 23
def self.build(*args, block)
builder = new(*args)
builder.instance_eval(&block) if block
builder._build
end
|
Instance Method Details
#assign_or_merge(node, key, value) ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/orchparty/dsl_parser_kubernetes.rb', line 29
def assign_or_merge(node, key, value)
node[key] = if node[key]
node[key].deep_merge_concat(value)
else
value
end
end
|