Class: Instrumentality::Finder
- Inherits:
-
Object
- Object
- Instrumentality::Finder
- Defined in:
- lib/instrumentality/finder.rb
Class Method Summary collapse
- .find_project ⇒ Object
- .find_workspace ⇒ Object
- .find_xctestrun(location) ⇒ Object
- .path_for_header(name) ⇒ Object
- .path_for_script(name) ⇒ Object
Class Method Details
.find_project ⇒ Object
7 8 9 |
# File 'lib/instrumentality/finder.rb', line 7 def self.find_project find('*.xcodeproj', 2).first end |
.find_workspace ⇒ Object
3 4 5 |
# File 'lib/instrumentality/finder.rb', line 3 def self.find_workspace find('*.xcworkspace', 2).first end |
.find_xctestrun(location) ⇒ Object
11 12 13 |
# File 'lib/instrumentality/finder.rb', line 11 def self.find_xctestrun(location) find('*.xctestrun', 0, location).first end |
.path_for_header(name) ⇒ Object
20 21 22 |
# File 'lib/instrumentality/finder.rb', line 20 def self.path_for_header(name) File.("../headers/#{name}", __FILE__) end |
.path_for_script(name) ⇒ Object
15 16 17 18 |
# File 'lib/instrumentality/finder.rb', line 15 def self.path_for_script(name) return name if File.exist?(name) File.("../scripts/#{name}", __FILE__) end |