Module: Gaudi::Tasks

Defined in:
lib/gaudi/helpers/generators.rb

Overview

Task Generators are modules that create the types of tasks the build system supports

Defined Under Namespace

Modules: Build, TaskDependencies

Class Method Summary collapse

Class Method Details

.define_file_task(task_name, dependencies) ⇒ Object

Defines a file task with or without dependencies


8
9
10
11
12
13
14
# File 'lib/gaudi/helpers/generators.rb', line 8

def self.define_file_task task_name,dependencies
  if dependencies && !dependencies.empty?
    file task_name => dependencies
  else
    file task_name
  end
end