Sha256: 10ac0074c31704f8023742bc0a5bb4a3998cea936aea585510a3b48dba235991

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

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

  def install_vlc
    puts 'VLC media player is not installed on your system. Make sure you have homebrew and brew-cask installed, and then run the following command:'
    puts 'brew cask install vlc'
    exit 1
  end

  def whoami
    `whoami`.gsub(/\n/, '')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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