Class: Cumuliform::RakeTask::TaskLib Private

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/cumuliform/rake_task.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Rake task lib for generating Cumuliform processing rule

API:

  • private

Instance Method Summary collapse

Instance Method Details

#define_rule(rule_args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



15
16
17
18
19
20
21
# File 'lib/cumuliform/rake_task.rb', line 15

def define_rule(rule_args)
  task_body = ->(t, args) {
    Cumuliform::Runner.process(t.source, t.name)
  }

  rule(*rule_args, &task_body)
end