brew/Library/Homebrew/test/support/fixtures/cask/Casks/with-conditional-caveats.rb

15 lines
386 B
Ruby
Raw Normal View History

2017-02-03 21:52:51 +01:00
cask 'with-conditional-caveats' do
2016-08-18 22:11:42 +03:00
version '1.2.3'
2016-08-20 05:08:16 +02:00
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
2016-08-18 22:11:42 +03:00
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
homepage 'https://brew.sh'
2016-08-18 22:11:42 +03:00
app 'Caffeine.app'
# a do block may print and use a DSL
caveats do
puts 'This caveat is conditional' if false # rubocop:disable Lint/LiteralInCondition
end
end