class EarlGrey::CLI
Constants
- CARTHAGE
- PROJECT
- SCHEME
- SWIFT
- SWIFT_VERSION
- TARGET
Public Instance Methods
install()
click to toggle source
# File lib/earlgrey/cli.rb, line 36 def install o = options.dup opts = { swift: o[SWIFT], carthage: o[CARTHAGE], swift_version: o[SWIFT_VERSION] } # Use target as the default Scheme name. o[SCHEME] ||= o[TARGET] o[PROJECT] ||= Dir.glob(File.join(Dir.pwd, '*.xcodeproj')).first raise 'No project found' unless o[PROJECT] EarlGrey.configure_for_earlgrey o[PROJECT], o[TARGET], o[SCHEME], opts end