summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user.rb
diff options
context:
space:
mode:
authorSeth Chisamore <schisamo@opscode.com>2012-11-30 11:51:28 -0500
committerSeth Chisamore <schisamo@opscode.com>2012-11-30 11:51:28 -0500
commita88b70b5586c9bafd81f865cb900bc2cdb6c475d (patch)
tree60c7345f8d4e74ab2bf06a77625c15c60cdec08a /lib/chef/provider/user.rb
parent871ca3b95fd4f2475593b5cc6b5be8c88c20cf4f (diff)
downloadchef-a88b70b5586c9bafd81f865cb900bc2cdb6c475d.tar.gz
[CHEF-3643] ensure Chef::REST can be required without loading Chef
Currently some non-Chef applications depend on the Chef gem as a library. In particular `chef-server-webui` leverages the Chef::REST to make requests to Erchef. We need to ensure Chef::REST can be required without forcing an application to load the whole Chef bowl. In particular this commit: * Ensures `Chef::Provider` is required in `Chef::REST` before trying to access it. * Stops the circular dependencies in `Chef::Provider::User` and `Chef::Provider::Group` when they are required in `Chef::Platform`.
Diffstat (limited to 'lib/chef/provider/user.rb')
-rw-r--r--lib/chef/provider/user.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb
index e73c9de57e..e815ba9c9e 100644
--- a/lib/chef/provider/user.rb
+++ b/lib/chef/provider/user.rb
@@ -18,7 +18,6 @@
require 'chef/provider'
require 'chef/mixin/command'
-require 'chef/resource/user'
require 'etc'
class Chef