itamae-kitchen / itamae

Configuration management tool inspired by Chef, but simpler and lightweight. Formerly known as Lightchef.

Home Page:https://itamae.kitchen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use the package resource to install Homebrew casks?

jrab89 opened this issue · comments

I'm using itamae local to setup my Mac. I can use the package resource to install packages with Homebrew, but I can't use it to install Homebrew casks. For example:

$ ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin16]
$ itamae version
Itamae v1.10.3
$ cat example.rb
package 'ack'
package 'vlc'
$ itamae local example.rb
 INFO : Starting Itamae...
 INFO : Recipe: /Users/jeff.rabovsky/example.rb
 INFO :   package[ack] installed will change from 'false' to 'true'
 INFO :   package[vlc] installed will change from 'false' to 'true'
ERROR :     stderr | Error: No available formula with the name "vlc"
ERROR :     stderr | Found a cask named "vlc" instead.
ERROR :     Command `brew install  'vlc'` failed. (exit status: 1)
ERROR :   package[vlc] Failed.

Is it possible to use the package resource to install Homebrew casks? Thanks for your help!