module RSpecRake
Constants
- VERSION
Attributes
application[W]
auto_reenable[RW]
Flag for method hook.
If true, call Rake::Task#reenable after Rake::Task#invoke
Public Class Methods
configure() { |self| ... }
click to toggle source
This method exists only to clarify that these are RSpecRake
configurations. @yield [self] yield RSpecRake
module instance. @example
RSpecRake.configure do |config| config.require_tasks('rake_dir') config.auto_reenable = true end
# File lib/rspec_rake.rb, line 18 def configure yield self Rake::Task.define_task(:environment) end
require_tasks(dir)
click to toggle source
To define rake tasks, put your rake directory path @param [String] dir Directory path of rake files
# File lib/rspec_rake.rb, line 26 def require_tasks(dir) Dir.glob(File.join(dir, '*.rake')).each do |file| application.rake_require(File.basename(file).gsub('.rake', ''), [dir]) end end
Private Class Methods
application()
click to toggle source
# File lib/rspec_rake.rb, line 34 def application @application ||= Rake::Application.new end