Class: Bake::Command::Call
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Bake::Command::Call
- Defined in:
- lib/bake/command/call.rb
Overview
Execute one or more commands.
Instance Method Summary collapse
Instance Method Details
#bakefile ⇒ Object
17 18 19 |
# File 'lib/bake/command/call.rb', line 17 def bakefile @parent.bakefile end |
#call ⇒ Object
29 30 31 32 33 |
# File 'lib/bake/command/call.rb', line 29 def call context = @parent.context context.call(*@commands) end |
#format(output, value) ⇒ Object
23 24 25 26 27 |
# File 'lib/bake/command/call.rb', line 23 def format(output, value) if formatter = OUTPUT[output] formatter.call(value) end end |