mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
This takes the form of a horrible hack: DSL version numbers may end with "test", *eg* ":v1test". Such Casks are mapped to class `TestCask` instead of class `Cask`. The intention is that all of this logic will be removed when Casks are migrated away from separate classes. Tests driven by RSpec are still todo.
15 lines
507 B
Ruby
15 lines
507 B
Ruby
cask :v1test => 'with-installer-script' do
|
|
version '1.2.3'
|
|
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
|
|
|
|
url TestHelper.local_binary_url('caffeine.zip')
|
|
homepage 'http://example.com/with-install-script'
|
|
|
|
installer :script => '/usr/bin/true',
|
|
:args => ['--flag']
|
|
# acceptable alternate form
|
|
installer :script => {
|
|
:executable => '/usr/bin/false',
|
|
:args => ['--flag'],
|
|
}
|
|
end
|