Hi #homebrew users!
I’m trying to create a #salt cask and I would like to use an arbitrary Ruby method as explained in the official documentation: https://docs.brew.sh/Cask-Cookbook#arbitrary-ruby-methods
```ruby
cask "salt" do
module Utils
def self.patch_plist(plist_file)
```
However, brew linter is not happy with it:
```
Casks/salt.rb:2:3: W: Lint/ConstantDefinitionInBlock: Do not define constants this way within a block.
module Utils ...
```
Can someone tell me what I’m doing wrong? Thank you!
In response to my self, I found a solution
You just have to define the `Utils` module outside the `cask` block.
Remember that your module does not include @homebrew's modules, so you would have to extend your module with those you need.
Here is my full cask: https://github.com/cdalvaro/homebrew-tap/blob/eeccca3519c4094af10c068a39c6ff51605925dc/Casks/salt.rb