Class: Perkins::Build::Shell::Block
- Defined in:
- lib/perkins/build/shell/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#close ⇒ Object
readonly
Returns the value of attribute close.
-
#open ⇒ Object
readonly
Returns the value of attribute open.
Attributes inherited from Group
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Group
Methods included from Dsl
#cd, #echo, #elif, #else, #export, #file, #fold, #if, #newline, #set
Methods inherited from Node
Constructor Details
This class inherits a constructor from Perkins::Build::Shell::Group
Instance Attribute Details
#close ⇒ Object (readonly)
Returns the value of attribute close.
75 76 77 |
# File 'lib/perkins/build/shell/node.rb', line 75 def close @close end |
#open ⇒ Object (readonly)
Returns the value of attribute open.
75 76 77 |
# File 'lib/perkins/build/shell/node.rb', line 75 def open @open end |
Instance Method Details
#cmd(code, *args) ⇒ Object
85 86 87 |
# File 'lib/perkins/build/shell/node.rb', line 85 def cmd(code, *args) super(code, *(args, level: 1)) end |
#raw(code, *args) ⇒ Object
89 90 91 |
# File 'lib/perkins/build/shell/node.rb', line 89 def raw(code, *args) super(code, *(args, level: 1)) end |
#script(*args) ⇒ Object
81 82 83 |
# File 'lib/perkins/build/shell/node.rb', line 81 def script(*args) super(*(args, level: 1)) end |
#to_s ⇒ Object
77 78 79 |
# File 'lib/perkins/build/shell/node.rb', line 77 def to_s [open, super, close].compact.join("\n") end |