Sha256: 33d79b228cfce25b2fa17436bb03bc6cd04b408b12e119def24a555e8dd69722

Contents?: true

Size: 531 Bytes

Versions: 96

Compression:

Stored size: 531 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
      ::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
      ::Paths::PathnameWrap.new(old_original_dir())
    end
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
albacore-3.0.1 ./lib/albacore/rake_overrides.rb
albacore-3.0.0.pre.alpha.6 ./lib/albacore/rake_overrides.rb
albacore-3.0.0.pre.alpha.5 ./lib/albacore/rake_overrides.rb
albacore-3.0.0.pre.alpha.4 ./lib/albacore/rake_overrides.rb
albacore-3.0.0.pre.alpha.3 ./lib/albacore/rake_overrides.rb
albacore-3.0.0.pre.alpha.2 ./lib/albacore/rake_overrides.rb
albacore-3.0.0.pre.alpha ./lib/albacore/rake_overrides.rb
albacore-2.8.0 ./lib/albacore/rake_overrides.rb
albacore-2.7.0 ./lib/albacore/rake_overrides.rb
albacore-2.6.8 ./lib/albacore/rake_overrides.rb
albacore-2.6.7 ./lib/albacore/rake_overrides.rb
albacore-2.6.6 ./lib/albacore/rake_overrides.rb
albacore-2.6.4 ./lib/albacore/rake_overrides.rb
albacore-2.6.3 ./lib/albacore/rake_overrides.rb
albacore-2.6.2 ./lib/albacore/rake_overrides.rb
albacore-2.6.1 ./lib/albacore/rake_overrides.rb
albacore-2.6.0 ./lib/albacore/rake_overrides.rb
albacore-2.5.14 ./lib/albacore/rake_overrides.rb
albacore-2.5.13 ./lib/albacore/rake_overrides.rb
albacore-2.5.11 ./lib/albacore/rake_overrides.rb