Class: EmergeCLI::Commands::Integrate::Fastlane

Inherits:
GlobalOptions
  • Object
show all
Defined in:
lib/commands/integrate/fastlane.rb

Instance Method Summary collapse

Methods inherited from GlobalOptions

#before

Instance Method Details

#call(path: '.', **_options) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/commands/integrate/fastlane.rb', line 13

def call(path: '.', **_options)
  @project_path = File.expand_path(path)
  Logger.info "Project path: #{@project_path}"

  Logger.info '🔍 Detecting project type...'
  detector = ProjectDetector.new(@project_path)

  if detector.ios_project?
    Logger.info '📱 iOS project detected!'
    setup_ios
  else
    Logger.error "❌ Error: Could not detect project. Make sure you're in the root directory of an iOS project."
    exit 1
  end
end