Module: Paths
- Defined in:
- lib/rake_cloudspin/paths.rb
Class Method Summary collapse
- .from_project_root_directory(*segments) ⇒ Object
- .join(*segments) ⇒ Object
- .join_and_expand(*segments) ⇒ Object
- .project_root_directory ⇒ Object
- .self_directory ⇒ Object
Class Method Details
.from_project_root_directory(*segments) ⇒ Object
7 8 9 |
# File 'lib/rake_cloudspin/paths.rb', line 7 def from_project_root_directory(*segments) (project_root_directory, *segments) end |
.join(*segments) ⇒ Object
15 16 17 |
# File 'lib/rake_cloudspin/paths.rb', line 15 def join(*segments) File.join(*segments.compact) end |
.join_and_expand(*segments) ⇒ Object
11 12 13 |
# File 'lib/rake_cloudspin/paths.rb', line 11 def (*segments) File.(join(*segments)) end |
.project_root_directory ⇒ Object
3 4 5 |
# File 'lib/rake_cloudspin/paths.rb', line 3 def project_root_directory File.(Rake.application.original_dir) end |
.self_directory ⇒ Object
19 20 21 |
# File 'lib/rake_cloudspin/paths.rb', line 19 def self_directory File.dirname(__FILE__) end |