Sha256: 9ff71c75bf76005d10fb0b395727f90651a19828a0b923e141d346e07c86ba19

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

module Rake
  class Application
    alias_method :origin_find_rakefile_location, :find_rakefile_location
    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
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peony-0.1.6 lib/peony/application.rb