Sha256: e12a6fde17db67631bba75a3c4a8ba0fe009e5bf24ed7b4338d312a169be52ea
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
module Sigh class DependencyChecker def self.check_dependencies 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 sigh" 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 sigh again" Helper.log.fatal '#############################################################' raise "Run 'brew update && brew install phantomjs' and start sigh 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 sigh" 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 sigh again" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sigh-0.0.1 | lib/sigh/dependency_checker.rb |