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'

  class Default < Thor
    include Thor::RakeCompat

    Spec::Rake::SpecTask.new(:spec) do |t|
      t.spec_opts = ['--options', "spec/spec.opts"]
      t.spec_files = FileList['spec/**/*_spec.rb']
    end
  end

Methods

Public Class methods

[Validate]