Class: Instrumentality::Finder

Inherits:
Object
  • Object
show all
Defined in:
lib/instrumentality/finder.rb

Class Method Summary collapse

Class Method Details

.find_projectObject



7
8
9
# File 'lib/instrumentality/finder.rb', line 7

def self.find_project
  find('*.xcodeproj', 2).first
end

.find_workspaceObject



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.expand_path("../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.expand_path("../scripts/#{name}", __FILE__)
end