Class: PEM::DependencyChecker
- Inherits:
-
Object
- Object
- PEM::DependencyChecker
- Defined in:
- lib/pem/dependency_checker.rb
Class Method Summary collapse
Class Method Details
.check_dependencies ⇒ Object
3 4 5 6 |
# File 'lib/pem/dependency_checker.rb', line 3 def self.check_dependencies self.check_phantom_js self.check_xcode_select end |
.check_phantom_js ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pem/dependency_checker.rb', line 8 def self.check_phantom_js if `which phantomjs`.length == 0 # Missing brew dependency Helper.log.fatal '#############################################################' Helper.log.fatal "# You have to install phantomjs to use PEM" Helper.log.fatal "# phantomjs is used to control the iTunesConnect frontend" Helper.log.fatal "# Install Homebrew using http://brew.sh/" if `which brew`.length == 0 Helper.log.fatal "# Run 'brew update && brew install phantomjs' and start PEM again" Helper.log.fatal '#############################################################' raise "Run 'brew update && brew install phantomjs' and start PEM again" end end |
.check_xcode_select ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/pem/dependency_checker.rb', line 21 def self.check_xcode_select unless `xcode-select -v`.include?"xcode-select version " Helper.log.fatal '#############################################################' Helper.log.fatal "# You have to install the Xcode commdand line tools to use PEM" Helper.log.fatal "# Install the latest version of Xcode from the AppStore" Helper.log.fatal "# Run xcode-select --install to install the developer tools" Helper.log.fatal '#############################################################' raise "Run 'xcode-select --install' and start PEM again" end end |