Module: Padrino::Tasks

Defined in:
padrino-core/lib/padrino-core/tasks.rb

Overview

This module it's used for bootstrap with padrino rake third party tasks, in your gem/plugin/extension you need only do this:

Examples:

Padrino::Tasks.files << yourtask.rb
Padrino::Tasks.files.concat(Dir["/path/to/all/my/tasks/*.rb"])
Padrino::Tasks.files.unshift("yourtask.rb")

Class Method Summary collapse

Class Method Details

.filesObject

Returns a list of files to handle with padrino rake



17
18
19
# File 'padrino-core/lib/padrino-core/tasks.rb', line 17

def self.files
  @files ||= []
end