class Orchparty::AST

Public Class Methods

all(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 37
def self.all(args = {})
  Node.new(_mix:[], _variables: {}).merge(args)
end
application(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 33
def self.application(args = {})
  Node.new({services: {}, _mixins: {}, _mix:[], volumes: {}, _variables: {}, networks: {}, _service_order: []}).merge(args)
end
application_mixin(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 41
def self.application_mixin(args = {})
  Node.new(_mix:[], _variables: {}).merge(args)
end
array(args = []) click to toggle source
# File lib/orchparty/ast.rb, line 21
def self.array(args = [])
  args
end
chart(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 49
def self.chart(args = {})
  Node.new(_mix:[], _variables: {}, _services: []).merge(args)
end
hash(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 17
def self.hash(args = {})
  Node.new.merge(args)
end
mixin(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 29
def self.mixin(args = {})
  Node.new({services: {}, _mixins: {}, volumes: {}, _variables: {}, networks: {}, _service_order: []}).merge(args)
end
root(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 25
def self.root(args = {})
  Node.new(applications: {}, _mixins: {}).merge(args)
end
service(args = {}) click to toggle source
# File lib/orchparty/ast.rb, line 45
def self.service(args = {})
  Node.new(_mix:[], _variables: {}).merge(args)
end