Class: Roject::TaskMaker
- Inherits:
-
Object
- Object
- Roject::TaskMaker
- Defined in:
- lib/makers.rb
Overview
Created: 7 - 23 - 2016
Instance Method Summary collapse
-
#initialize(&block) ⇒ TaskMaker
constructor
Initializes a TaskMaker with the given block.
-
#make(project, args) ⇒ Object
Runs the task with the given arguments.
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 |