Class: Orchparty::AST
- Inherits:
-
Object
- Object
- Orchparty::AST
- Defined in:
- lib/orchparty/ast.rb
Defined Under Namespace
Classes: Node
Class Method Summary collapse
- .all(args = {}) ⇒ Object
- .application(args = {}) ⇒ Object
- .application_mixin(args = {}) ⇒ Object
- .array(args = []) ⇒ Object
- .chart(args = {}) ⇒ Object
- .hash(args = {}) ⇒ Object
- .mixin(args = {}) ⇒ Object
- .root(args = {}) ⇒ Object
- .service(args = {}) ⇒ Object
Class Method Details
.all(args = {}) ⇒ Object
49 50 51 |
# File 'lib/orchparty/ast.rb', line 49 def self.all(args = {}) Node.new(_mix: [], _variables: {}).merge(args) end |
.application(args = {}) ⇒ Object
45 46 47 |
# File 'lib/orchparty/ast.rb', line 45 def self.application(args = {}) Node.new({ services: {}, _mixins: {}, _mix: [], volumes: {}, _variables: {}, networks: {}, _service_order: [] }).merge(args) end |
.application_mixin(args = {}) ⇒ Object
53 54 55 |
# File 'lib/orchparty/ast.rb', line 53 def self.application_mixin(args = {}) Node.new(_mix: [], _variables: {}).merge(args) end |
.array(args = []) ⇒ Object
33 34 35 |
# File 'lib/orchparty/ast.rb', line 33 def self.array(args = []) args end |
.chart(args = {}) ⇒ Object
61 62 63 |
# File 'lib/orchparty/ast.rb', line 61 def self.chart(args = {}) Node.new(_mix: [], _variables: {}, _services: []).merge(args) end |
.hash(args = {}) ⇒ Object
29 30 31 |
# File 'lib/orchparty/ast.rb', line 29 def self.hash(args = {}) Node.new.merge(args) end |
.mixin(args = {}) ⇒ Object
41 42 43 |
# File 'lib/orchparty/ast.rb', line 41 def self.mixin(args = {}) Node.new({ services: {}, _mixins: {}, volumes: {}, _variables: {}, networks: {}, _service_order: [] }).merge(args) end |
.root(args = {}) ⇒ Object
37 38 39 |
# File 'lib/orchparty/ast.rb', line 37 def self.root(args = {}) Node.new(applications: {}, _mixins: {}).merge(args) end |
.service(args = {}) ⇒ Object
57 58 59 |
# File 'lib/orchparty/ast.rb', line 57 def self.service(args = {}) Node.new(_mix: [], _variables: {}).merge(args) end |