Sha256: a56351bff8b2f037408d8575533cdb5e67dbab17045795e95daa3d8baa04b345

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

require 'rake'

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

4 entries across 4 versions & 1 rubygems

Version Path
peony-0.3.1 lib/peony/application.rb
peony-0.3.0 lib/peony/application.rb
peony-0.1.9 lib/peony/application.rb
peony-0.1.8 lib/peony/application.rb