Class: EmergeCLI::ProjectDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/utils/project_detector.rb

Instance Method Summary collapse

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

Returns:

  • (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