Class: Bake::Command::Call

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/bake/command/call.rb

Overview

Execute one or more commands.

Instance Method Summary collapse

Instance Method Details

#bakefileObject



17
18
19
# File 'lib/bake/command/call.rb', line 17

def bakefile
	@parent.bakefile
end

#callObject



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