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
37 38 39 |
# File 'lib/orchparty/ast.rb', line 37 def self.all(args = {}) Node.new(_mix:[], _variables: {}).merge(args) end |
.application(args = {}) ⇒ Object
33 34 35 |
# 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 = {}) ⇒ Object
41 42 43 |
# File 'lib/orchparty/ast.rb', line 41 def self.application_mixin(args = {}) Node.new(_mix:[], _variables: {}).merge(args) end |
.array(args = []) ⇒ Object
21 22 23 |
# File 'lib/orchparty/ast.rb', line 21 def self.array(args = []) args end |
.chart(args = {}) ⇒ Object
49 50 51 |
# File 'lib/orchparty/ast.rb', line 49 def self.chart(args = {}) Node.new(_mix:[], _variables: {}, _services: []).merge(args) end |
.hash(args = {}) ⇒ Object
17 18 19 |
# File 'lib/orchparty/ast.rb', line 17 def self.hash(args = {}) Node.new.merge(args) end |
.mixin(args = {}) ⇒ Object
29 30 31 |
# 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 = {}) ⇒ Object
25 26 27 |
# File 'lib/orchparty/ast.rb', line 25 def self.root(args = {}) Node.new(applications: {}, _mixins: {}).merge(args) end |
.service(args = {}) ⇒ Object
45 46 47 |
# File 'lib/orchparty/ast.rb', line 45 def self.service(args = {}) Node.new(_mix:[], _variables: {}).merge(args) end |