homebrew-cask-versions/Casks/prey.rb
Kevin Deldycke cc4e796a74 Add new cask for Prey project.
This cask install the batch version of Prey package, as detailed in:
http://support.preyproject.com/kb/installation/how-to-deploy-prey-in-batch-mode-mac-os

As it requires an API key to be installed, a warning is displayed to the
user with an explanation on how to fix the issue.

Also added -E option to sudo invocation so environment variables can be
passed to the installer.

closes #953

Signed-off-by: phinze <paul.t.hinze@gmail.com>
2013-10-20 13:18:54 -05:00

18 lines
599 B
Ruby

class Prey < Cask
url 'http://preyproject.com/releases/current/prey-0.6.0-mac-batch.mpkg.zip'
homepage 'https://preyproject.com'
version '0.6.0'
sha1 'cb16471070e4c998d6178e7e96284b908c4ad18b'
install 'prey-0.6.0-mac-batch.mpkg'
uninstall :pkgutil => 'com.forkhq.prey'
def caveats; <<-EOS.undent
Prey requires an API key to be installed. If None is found, installation will fail.
To set up your API key, set it as an environment variable during installation like this:
brew cask uninstall prey
API_KEY="abcdef123456" brew cask install prey
EOS
end
end