Sha256: b387f1d325be4a4a6b010cb0d1db67647fdd15aa722a835d2b22b9beaa9d092d

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

module Paths
  class <<self
    def project_root_directory
      File.expand_path(Rake.application.original_dir)
    end

    def from_project_root_directory(*segments)
      join_and_expand(project_root_directory, *segments)
    end

    def join_and_expand(*segments)
      File.expand_path(join(*segments))
    end

    def join(*segments)
      File.join(*segments.compact)
    end

    def self_directory
      File.dirname(__FILE__)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake_cloudspin-0.0.4 lib/rake_cloudspin/paths.rb
rake_cloudspin-0.0.3 lib/rake_cloudspin/paths.rb
rake_cloudspin-0.0.2 lib/rake_cloudspin/paths.rb
rake_cloudspin-0.0.1 lib/rake_cloudspin/paths.rb