File: project_path_macro.rb

package info (click to toggle)
ruby-librarian 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 624 kB
  • sloc: ruby: 6,109; makefile: 11
file content (14 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Support
  module ProjectPathMacro

    project_path = Pathname.new(__FILE__).expand_path
    project_path = project_path.dirname until project_path.join("Rakefile").exist?

    PROJECT_PATH = project_path

    def project_path
      PROJECT_PATH
    end

  end
end