module VlcCheck
Public Instance Methods
install_vlc()
click to toggle source
# File lib/media/runner/app/vlc_check.rb, line 6 def install_vlc Media::Printer.output ['VLC media player is not installed on your system. Make sure you have homebrew and \ brew-cask installed, and then run the following command:', 'brew cask install vlc'] exit 1 end
vlc_installed?()
click to toggle source
# File lib/media/runner/app/vlc_check.rb, line 2 def vlc_installed? install_vlc unless File.file? "#{Dir.home}/Applications/VLC.app/Contents/MacOS/VLC" end