Sha256: 0ecc83c15f55cc3a2052bfb6dfa9c19719063529455b5c2e4a378e3f3e208cde
Contents?: true
Size: 610 Bytes
Versions: 4
Compression:
Stored size: 610 Bytes
Contents
module Learn module Jasmine class PhantomChecker def self.check_installation new.check_installation end def check_installation if !brew_installed? puts "You must have Homebrew installed." exit else if !phantom_installed? install_phantomjs end end end def brew_installed? !`which brew`.empty? end def phantom_installed? !`brew ls --versions phantomjs`.empty? end def install_phantomjs `brew install phantomjs` end end end end
Version data entries
4 entries across 4 versions & 1 rubygems