Module: PadrinoTasks

### Home Classes Methods

### In Files

- lib/padrino-core/cli/rake.rb

### Methods

- ::init
- ::load?
- ::tasks
- ::use

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Application
- Padrino::ApplicationLoadError
- Padrino::ApplicationSetupError
- Padrino::Cli
- Padrino::Cli::Adapter
- Padrino::Cli::Base
- Padrino::Erubis
- Padrino::Erubis::SafeBufferEnhancer
- Padrino::Erubis::SafeBufferTemplate
- Padrino::Erubis::Template
- Padrino::Filter
- Padrino::Flash
- Padrino::Flash::Helpers
- Padrino::Flash::Storage
- Padrino::Logger
- Padrino::Logger::Colorize
- Padrino::Logger::Extensions
- Padrino::Logger::Rack
- Padrino::Module
- Padrino::Mounter
- Padrino::Mounter::MounterException
- Padrino::Reloader
- Padrino::Reloader::Rack
- Padrino::Rendering
- Padrino::Rendering::ClassMethods
- Padrino::Rendering::InstanceMethods
- Padrino::Rendering::SafeTemplate
- Padrino::Rendering::TemplateNotFound
- Padrino::Router
- Padrino::Routing
- Padrino::Routing::ClassMethods
- Padrino::Routing::InstanceMethods
- Padrino::Routing::Parent
- Padrino::Routing::UnrecognizedException
- Padrino::Server
- Padrino::ShowExceptions
- Padrino::Tasks
- Padrino::Utils
- HttpRouter
- HttpRouter::Node
- HttpRouter::Node::Path
- HttpRouter::Request
- HttpRouter::Route
- Haml
- Haml::Helpers
- Haml::Util
- Sinatra
- Sinatra::Request
- Slim
- Slim::Template
- Tilt
- Tilt::HamlTemplate
- FileSet
- Kernel
- Module
- Object
- ObjectSpace
- PadrinoTasks
- String
- SupportLite

No matching classes.

# PadrinoTasks

### Public Class Methods

init(init=false) click to toggle source

    # File lib/padrino-core/cli/rake.rb, line 9
    def self.init(init=false)
      $LOAD_PATH.unshift(File.expand_path("lib")) # Adds "lib" to the load path
      Padrino::Tasks.files.flatten.uniq.each { |rakefile| Rake.application.add_import(rakefile) rescue puts "<= Failed load #{ext}" }
      load(File.expand_path('../rake_tasks.rb', __FILE__)) # Load default rake tasks
      Rake.application.load_imports
    end

load?(task, constant_present) click to toggle source

    # File lib/padrino-core/cli/rake.rb, line 24
    def self.load?(task, constant_present)
      if constant_present && !PadrinoTasks.tasks.include?(task)
        warn         Loading #{task} tasks automatically.        This functionality will be disabled in future versions. Please put          PadrinoTasks.use(#{task.inspect})          PadrinoTasks.init        and remove          require File.expand_path('../config/boot.rb', __FILE__)        in you Rakefile instead..undent
      end

      constant_present || PadrinoTasks.tasks.include?(task)
    end

tasks() click to toggle source

    # File lib/padrino-core/cli/rake.rb, line 20
    def self.tasks
      @tasks ||= []
    end

use(task) click to toggle source

    # File lib/padrino-core/cli/rake.rb, line 16
    def self.use(task)
      tasks << task
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.