class Bake::Command::Call
Execute one or more commands.
Public Instance Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.24.0/lib/bake/command/call.rb, line 17 def bakefile @parent.bakefile end
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.24.0/lib/bake/command/call.rb, line 29 def call context = @parent.context context.call(*@commands) do |recipe, last_result| if last_result and !recipe.output? context.lookup("output").call(input: last_result) end end end
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.24.0/lib/bake/command/call.rb, line 23 def format(output, value) if formatter = OUTPUT[output] formatter.call(value) end end