Class: Rake::Application
- Inherits:
-
Object
- Object
- Rake::Application
- Defined in:
- lib/peony/application.rb
Instance Method Summary collapse
Instance Method Details
#find_rakefile_location ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/peony/application.rb', line 7 def find_rakefile_location ret = origin_find_rakefile_location unless ret if ENV['peony_root'] Dir.chdir(ENV['peony_root']) if fn = have_rakefile ret = [fn, Dir.pwd] end end end ret ensure Dir.chdir(Rake.original_dir) end |
#origin_find_rakefile_location ⇒ Object
5 |
# File 'lib/peony/application.rb', line 5 alias_method :origin_find_rakefile_location, :find_rakefile_location |