Class: Roject::TaskMaker

Inherits:
Object
  • Object
show all
Defined in:
lib/makers.rb

Overview

Created: 7 - 23 - 2016

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ TaskMaker

Initializes a TaskMaker with the given block

Parameter: &block - the block to run on make



31
# File 'lib/makers.rb', line 31

def initialize(&block); @block = block; end

Instance Method Details

#make(project, args) ⇒ Object

Runs the task with the given arguments

Parameter: project - the project running the task Parameter: args - the args being used to run the task



37
38
39
# File 'lib/makers.rb', line 37

def make project, args
	project.instance_exec project.config.merge(args), &@block
end