class Snapcrawl::Dependencies

Public Class Methods

verify() click to toggle source
# File lib/snapcrawl/dependencies.rb, line 8
def verify
  return if @verified

  $logger.debug 'verifying !txtgrn!phantomjs!txtrst! is present'
  raise MissingPhantomJS unless command_exist? "phantomjs"

  $logger.debug 'verifying !txtgrn!imagemagick!txtrst! is present'
  raise MissingImageMagick unless command_exist? "convert"

  @verified = true
end