Class: Dplyr::TasksConfig
- Inherits:
-
Object
- Object
- Dplyr::TasksConfig
- Includes:
- Dply::Helper
- Defined in:
- lib/dplyr/tasks_config.rb
Instance Method Summary collapse
- #get_task ⇒ Object
-
#initialize(config_file) ⇒ TasksConfig
constructor
A new instance of TasksConfig.
- #task(name, &block) ⇒ Object
Methods included from Dply::Helper
#cmd, #error, #git, #logger, #sh, #symlink
Constructor Details
#initialize(config_file) ⇒ TasksConfig
Returns a new instance of TasksConfig.
7 8 9 10 |
# File 'lib/dplyr/tasks_config.rb', line 7 def initialize(config_file) @config_file = config_file || "tasks.rb" @tasks = {} end |
Instance Method Details
#get_task ⇒ Object
16 17 18 |
# File 'lib/dplyr/tasks_config.rb', line 16 def get_task end |
#task(name, &block) ⇒ Object
12 13 14 |
# File 'lib/dplyr/tasks_config.rb', line 12 def task(name, &block) @tasks[name.to_sym] = block end |