class Roject::TaskMaker
Runs a task with the given arguments
Author: Anshul Kharbanda Created: 7 - 23 - 2016
Public Class Methods
new(&block)
click to toggle source
Initializes a TaskMaker
with the given block
Parameter: &block - the block to run on make
# File lib/makers.rb, line 31 def initialize(&block); @block = block; end
Public Instance Methods
make(project, args)
click to toggle source
Runs the task with the given arguments
Parameter: project - the project running the task Parameter: args - the args being used to run the task
# File lib/makers.rb, line 37 def make project, args project.instance_exec project.config.merge(args), &@block end