diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-29 16:27:17 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-29 16:27:17 -0700 |
commit | e2a77627155127d98c1795255f33ffdd748b8944 (patch) | |
tree | ca8fd0c5c7ea8e5cdc2de98a6607b4653014c858 /lib/chef | |
parent | 136c246e050b7676dbf061aa22dabe0c6fdc76a1 (diff) | |
download | chef-e2a77627155127d98c1795255f33ffdd748b8944.tar.gz |
homebrew_tap / homebrew_cask: Fix compile time errors with the user mixin
Turns out I was doing this entirely wrong. I've confirmed this fixes the issue I introduced by trying to fix another issue with the usage of the mixin.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/homebrew_cask.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/homebrew_tap.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/homebrew_cask.rb b/lib/chef/resource/homebrew_cask.rb index d10ecb04c9..4fde7da4c0 100644 --- a/lib/chef/resource/homebrew_cask.rb +++ b/lib/chef/resource/homebrew_cask.rb @@ -48,7 +48,7 @@ class Chef property :owner, String, description: "The owner of the homebrew installation.", - default: lazy { Chef::Mixin::HomebrewUser.find_homebrew_username } + default: lazy { find_homebrew_username } action :install do description "Install an application packaged as a Homebrew cask." diff --git a/lib/chef/resource/homebrew_tap.rb b/lib/chef/resource/homebrew_tap.rb index 8ce72e0861..bf1f34d687 100644 --- a/lib/chef/resource/homebrew_tap.rb +++ b/lib/chef/resource/homebrew_tap.rb @@ -49,7 +49,7 @@ class Chef property :owner, String, description: "The owner of the homebrew installation", - default: lazy { Chef::Mixin::HomebrewUser.find_homebrew_username } + default: lazy { find_homebrew_username } action :tap do description "Add a Homebrew tap." |