Class: Dplyr::TasksConfig

Inherits:
Object
  • Object
show all
Includes:
Dply::Helper
Defined in:
lib/dplyr/tasks_config.rb

Instance Method Summary collapse

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_taskObject



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