2020-07-27 12:57:29 +01:00
|
|
|
cask "with-caveats" do
|
|
|
|
version "1.2.3"
|
|
|
|
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
|
2016-08-18 22:11:42 +03:00
|
|
|
|
2016-10-22 00:48:30 +02:00
|
|
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
2020-07-27 12:57:29 +01:00
|
|
|
homepage "https://brew.sh/"
|
2016-08-18 22:11:42 +03:00
|
|
|
|
2020-07-27 12:57:29 +01:00
|
|
|
app "Caffeine.app"
|
2016-08-18 22:11:42 +03:00
|
|
|
|
|
|
|
# simple string is evaluated at compile-time
|
2017-10-15 02:28:32 +02:00
|
|
|
caveats <<~EOS
|
2016-08-18 22:11:42 +03:00
|
|
|
Here are some things you might want to know.
|
|
|
|
EOS
|
|
|
|
# do block is evaluated at install-time
|
|
|
|
caveats do
|
|
|
|
"Cask token: #{token}"
|
|
|
|
end
|
|
|
|
# a do block may print and use a DSL
|
|
|
|
caveats do
|
2020-07-27 12:57:29 +01:00
|
|
|
puts "Custom text via puts followed by DSL-generated text:"
|
|
|
|
path_environment_variable("/custom/path/bin")
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|
|
|
|
end
|