Sha256: faa102f71d856932818c3ecec3e59b85390e35b7c7e854aa8bddd8ef78f3cbd8

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

require 'media/runner/printer'

module VlcCheck
  def vlc_installed?
    install_vlc unless File.file? "#{Dir.home}/Applications/VLC.app/Contents/MacOS/VLC"
  end

  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
media-runner-1.0.2 lib/media/runner/app/vlc_check.rb