Module: Orchparty::Transformations

Defined in:
lib/orchparty/transformations.rb,
lib/orchparty/transformations/all.rb,
lib/orchparty/transformations/sort.rb,
lib/orchparty/transformations/mixin.rb,
lib/orchparty/transformations/variable.rb,
lib/orchparty/transformations/remove_internal.rb

Defined Under Namespace

Classes: All, Mixin, RemoveInternal, Sort, Variable

Class Method Summary collapse

Class Method Details

.transform(ast, opts = {}) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/orchparty/transformations.rb', line 12

def self.transform(ast, opts = {})
  ast = All.new.transform(ast)
  ast = Mixin.new.transform(ast)
  ast = Variable.new(opts).transform(ast)
  ast = RemoveInternal.new.transform(ast)
  ast = Sort.new.transform(ast)
end

.transform_kubernetes(ast, opts = {}) ⇒ Object



20
21
22
23
24
# File 'lib/orchparty/transformations.rb', line 20

def self.transform_kubernetes(ast, opts = {})
  ast = All.new.transform(ast)
  ast = Mixin.new.transform(ast)
  ast = Variable.new(opts).transform(ast)
end