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::ApplicationSetup
- Padrino::ApplicationSetup::ClassMethods
- Padrino::AuthenticityToken
- Padrino::Cli
- Padrino::Cli::Adapter
- Padrino::Cli::Base
- Padrino::Cli::Launcher
- Padrino::Filter
- Padrino::Flash
- Padrino::Flash::Helpers
- Padrino::Flash::Storage
- Padrino::Loader
- Padrino::Logger
- Padrino::Logger::Colorize
- Padrino::Logger::Extensions
- Padrino::Logger::Rack
- Padrino::Module
- Padrino::Mounter
- Padrino::Mounter::ApplicationWrapper
- Padrino::Mounter::MounterException
- Padrino::ParamsProtection
- Padrino::ParamsProtection::ClassMethods
- Padrino::ParamsProtection::InstanceMethods
- Padrino::Reloader
- Padrino::Reloader::Rack
- Padrino::Reloader::Storage
- Padrino::Router
- Padrino::Routing
- Padrino::Routing::ClassMethods
- Padrino::Routing::InstanceMethods
- Padrino::Routing::Parent
- Padrino::Routing::UnrecognizedException
- Padrino::Server
- Padrino::ShowExceptions
- Padrino::Tasks
- HttpRouter
- HttpRouter::Node
- HttpRouter::Node::FreeRegex
- HttpRouter::Node::Glob
- HttpRouter::Node::Path
- HttpRouter::Node::SpanningRegex
- HttpRouter::Request
- HttpRouter::Route
- Sinatra
- Sinatra::Base
- Sinatra::Request
- Kernel
- Object
- PadrinoTasks

No matching classes.

# PadrinoTasks

### Public Class Methods

init(init=false) click to toggle source

    # File lib/padrino-core/cli/rake.rb, line 12
    def self.init(init=false)
      $LOAD_PATH.unshift(File.expand_path("lib"))
      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__))
      Rake.application.load_imports
    end

load?(task, constant_present) click to toggle source

    # File lib/padrino-core/cli/rake.rb, line 27
    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.initand remove  require File.expand_path('../config/boot.rb', __FILE__)in you Rakefile instead.
      end

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

tasks() click to toggle source

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

use(task) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.