Class: EmergeCLI::ProjectDetector
- Inherits:
-
Object
- Object
- EmergeCLI::ProjectDetector
- Defined in:
- lib/utils/project_detector.rb
Instance Method Summary collapse
-
#initialize(project_path) ⇒ ProjectDetector
constructor
A new instance of ProjectDetector.
- #ios_project? ⇒ Boolean
Constructor Details
#initialize(project_path) ⇒ ProjectDetector
Returns a new instance of ProjectDetector.
3 4 5 |
# File 'lib/utils/project_detector.rb', line 3 def initialize(project_path) @project_path = project_path end |
Instance Method Details
#ios_project? ⇒ Boolean
7 8 9 |
# File 'lib/utils/project_detector.rb', line 7 def ios_project? Dir.glob(File.join(@project_path, '*.{xcodeproj,xcworkspace}')).any? end |