Sha256: d8e712008b41863162e481b2cea97586009a11ae6fd4b6bbc587a8e4ce51de9b
Contents?: true
Size: 1.51 KB
Versions: 8
Compression:
Stored size: 1.51 KB
Contents
module Deliver class DependencyChecker def self.check_dependencies return if Helper.is_test? self.check_phantom_js self.check_xcode_select end 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 deliver" 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 deliver again" Helper.log.fatal '#############################################################' raise "Run 'brew update && brew install phantomjs' and start deliver again" end end 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 deliver" 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 deliver again" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems