Sha256: af0b85957bebd4879afd4441f2d21ca8a9565abe40921ed5b8ef3227b5dc2c26

Contents?: true

Size: 551 Bytes

Versions: 3

Compression:

Stored size: 551 Bytes

Contents

require 'albacore/paths'
require 'albacore/albacore_module'

module ::Rake
  class << self
    alias_method :old_original_dir, :original_dir

    # get the original dir that rake was called from as a string
    def albacore_original_dir *args
      ::Albacore::Paths::PathnameWrap.new(old_original_dir(*args)).to_s
    end

    alias_method :original_dir, :albacore_original_dir

    # get the original dir that rake was called from a Pathname
    def original_dir_path
      ::Albacore::Paths::PathnameWrap.new(old_original_dir())
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
albacore-2.0.0.rc.9 lib/albacore/rake_overrides.rb
albacore-2.0.0.rc.8 lib/albacore/rake_overrides.rb
albacore-2.0.0.rc.7 lib/albacore/rake_overrides.rb