Module Thor::RakeCompat
In: lib/thor/rake_compat.rb

Adds a compatibility layer to your Thor classes which allows you to use rake package tasks. For example, to use rspec rake tasks, one can do:

  require 'thor/rake_compat'
  require 'rspec/core/rake_task'

  class Default < Thor
    include Thor::RakeCompat

    RSpec::Core::RakeTask.new(:spec) do |t|
      t.spec_opts = ['--options', './.rspec']
      t.spec_files = FileList['spec/**/*_spec.rb']
    end
  end

Methods

Included Modules

Rake::DSL

Public Class methods

[Validate]