summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-29 16:27:17 -0700
committerTim Smith <tsmith@chef.io>2018-03-29 16:27:17 -0700
commite2a77627155127d98c1795255f33ffdd748b8944 (patch)
treeca8fd0c5c7ea8e5cdc2de98a6607b4653014c858
parent136c246e050b7676dbf061aa22dabe0c6fdc76a1 (diff)
downloadchef-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>
-rw-r--r--lib/chef/resource/homebrew_cask.rb2
-rw-r--r--lib/chef/resource/homebrew_tap.rb2
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."