Module: Rake
- Defined in:
- lib/dotruby/tweaks/rake.rb
Defined Under Namespace
Classes: Application
Class Method Summary collapse
-
.file(&config) ⇒ Object
Use this method to add tasks to Rake.
- .load_rakefile(path) ⇒ Object
Class Method Details
.file(&config) ⇒ Object
Use this method to add tasks to Rake.
10 11 12 13 14 15 |
# File 'lib/dotruby/tweaks/rake.rb', line 10 def self.file(&config) Module.new do extend Rake::DSL module_eval(&config) end end |
.load_rakefile(path) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/dotruby/tweaks/rake.rb', line 23 def self.load_rakefile(path) case File.basename(path) when '.ruby' # do nothing, DotRuby will do it else load(path) end end |