Module: Rake

### Home Classes Methods

### In Files

- lib/rake/application.rb
- lib/rake/backtrace.rb
- lib/rake/cloneable.rb
- lib/rake/contrib/compositepublisher.rb
- lib/rake/contrib/ftptools.rb
- lib/rake/contrib/rubyforgepublisher.rb
- lib/rake/contrib/sshpublisher.rb
- lib/rake/default_loader.rb
- lib/rake/dsl_definition.rb
- lib/rake/early_time.rb
- lib/rake/file_creation_task.rb
- lib/rake/file_list.rb
- lib/rake/file_task.rb
- lib/rake/file_utils_ext.rb
- lib/rake/invocation_chain.rb
- lib/rake/invocation_exception_mixin.rb
- lib/rake/loaders/makefile.rb
- lib/rake/multi_task.rb
- lib/rake/name_space.rb
- lib/rake/packagetask.rb
- lib/rake/private_reader.rb
- lib/rake/promise.rb
- lib/rake/pseudo_status.rb
- lib/rake/rake_module.rb
- lib/rake/rule_recursion_overflow_error.rb
- lib/rake/runtest.rb
- lib/rake/task.rb
- lib/rake/task_argument_error.rb
- lib/rake/task_arguments.rb
- lib/rake/task_manager.rb
- lib/rake/tasklib.rb
- lib/rake/testtask.rb
- lib/rake/thread_pool.rb
- lib/rake/thread_history_display.rb
- lib/rake/trace_output.rb
- lib/rake/version.rb
- lib/rake/win32.rb

### Namespace

- MODULE Rake::AltSystem
- MODULE Rake::Backtrace
- MODULE Rake::Cloneable
- MODULE Rake::DSL
- MODULE Rake::FileUtilsExt
- MODULE Rake::InvocationExceptionMixin
- MODULE Rake::TaskManager
- MODULE Rake::TraceOutput
- MODULE Rake::Win32
- CLASS Rake::Application
- CLASS Rake::CompositePublisher
- CLASS Rake::DefaultLoader
- CLASS Rake::EarlyTime
- CLASS Rake::FileCreationTask
- CLASS Rake::FileList
- CLASS Rake::FileTask
- CLASS Rake::FtpFile
- CLASS Rake::FtpUploader
- CLASS Rake::InvocationChain
- CLASS Rake::MakefileLoader
- CLASS Rake::MultiTask
- CLASS Rake::NameSpace
- CLASS Rake::PackageTask
- CLASS Rake::PseudoStatus
- CLASS Rake::RubyForgePublisher
- CLASS Rake::RuleRecursionOverflowError
- CLASS Rake::SshDirPublisher
- CLASS Rake::SshFilePublisher
- CLASS Rake::SshFreshDirPublisher
- CLASS Rake::Task
- CLASS Rake::TaskArgumentError
- CLASS Rake::TaskArguments
- CLASS Rake::TaskLib
- CLASS Rake::TestTask

### Methods

- ::add_rakelib
- ::application
- ::application=
- ::load_rakefile
- ::original_dir
- #run_tests

### Included Modules

- Test::Unit::Assertions

### Files

- MIT-LICENSE
- README.rdoc
- TODO
- command_line_usage.rdoc
- glossary.rdoc
- proto_rake.rdoc
- rakefile.rdoc
- rational.rdoc
- rake-0.4.14.rdoc
- rake-0.4.15.rdoc
- rake-0.5.0.rdoc
- rake-0.5.3.rdoc
- rake-0.5.4.rdoc
- rake-0.6.0.rdoc
- rake-0.7.0.rdoc
- rake-0.7.1.rdoc
- rake-0.7.2.rdoc
- rake-0.7.3.rdoc
- rake-0.8.0.rdoc
- rake-0.8.4.rdoc
- rake-0.8.5.rdoc
- rake-0.8.6.rdoc
- rake-0.8.7.rdoc

### Class/Module Index

Quicksearch

- Rake
- Rake::AltSystem
- Rake::Application
- Rake::Backtrace
- Rake::Cloneable
- Rake::CompositePublisher
- Rake::DSL
- Rake::DefaultLoader
- Rake::EarlyTime
- Rake::FileCreationTask
- Rake::FileList
- Rake::FileTask
- Rake::FileUtilsExt
- Rake::FtpFile
- Rake::FtpUploader
- Rake::InvocationChain
- Rake::InvocationChain::EmptyInvocationChain
- Rake::InvocationExceptionMixin
- Rake::MakefileLoader
- Rake::MultiTask
- Rake::NameSpace
- Rake::PackageTask
- Rake::PseudoStatus
- Rake::RubyForgePublisher
- Rake::RuleRecursionOverflowError
- Rake::SshDirPublisher
- Rake::SshFilePublisher
- Rake::SshFreshDirPublisher
- Rake::Task
- Rake::TaskArgumentError
- Rake::TaskArguments
- Rake::TaskLib
- Rake::TaskManager
- Rake::TestTask
- Rake::TraceOutput
- Rake::Win32
- Rake::Win32::Win32HomeError
- CompositePublisher
- FileUtils
- Module
- Object
- SshDirPublisher
- SshFilePublisher
- SshFreshDirPublisher
- String
- Time

No matching classes.

# Rake

### Constants

CommandLineOptionError
EARLY
EMPTY_TASK_ARGS
VERSION

### Public Class Methods

add_rakelib(*files) click to toggle source

Add files to the rakelib list

    # File lib/rake/rake_module.rb, line 29
    def add_rakelib(*files)
      application.options.rakelib ||= []
      files.each do |file|
        application.options.rakelib << file
      end
    end

application() click to toggle source

Current Rake Application

    # File lib/rake/rake_module.rb, line 9
    def application
      @application ||= Rake::Application.new
    end

application=(app) click to toggle source

Set the current Rake application object.

    # File lib/rake/rake_module.rb, line 14
    def application=(app)
      @application = app
    end

load_rakefile(path) click to toggle source

Load a rakefile.

    # File lib/rake/rake_module.rb, line 24
    def load_rakefile(path)
      load(path)
    end

original_dir() click to toggle source

Return the original directory where the Rake application was started.

    # File lib/rake/rake_module.rb, line 19
    def original_dir
      application.original_dir
    end

### Public Instance Methods

run_tests(pattern='test/test*.rb', log_enabled=false) click to toggle source

    # File lib/rake/runtest.rb, line 8
    def run_tests(pattern='test/test*.rb', log_enabled=false)
      FileList.glob(pattern).each { |fn|
        $stderr.puts fn if log_enabled
        begin
          require fn
        rescue Exception => ex
          $stderr.puts "Error in #{fn}: #{ex.message}"
          $stderr.puts ex.backtrace
          assert false
        end
      }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.