Class: Frameit::DependencyChecker

Inherits:
Object
  • Object
show all
Defined in:
frameit/lib/frameit/dependency_checker.rb

Class Method Summary collapse

Class Method Details

.check_dependenciesObject



5
6
7
8
9
# File 'frameit/lib/frameit/dependency_checker.rb', line 5

def self.check_dependencies
  return if Helper.test?

  self.check_image_magick
end

.check_image_magickObject



11
12
13
14
15
16
17
18
19
20
# File 'frameit/lib/frameit/dependency_checker.rb', line 11

def self.check_image_magick
  unless `which convert`.include?("convert")
    UI.error('#############################################################')
    UI.error("# You have to install the ImageMagick to use FrameIt")
    UI.error("# Install it using 'brew update && brew install imagemagick'")
    UI.error("# If you don't have homebrew: http://brew.sh")
    UI.error('#############################################################')
    UI.user_error!("Install ImageMagick and start frameit again!")
  end
end