summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-10 21:38:48 -0700
committerTim Smith <tsmith@chef.io>2018-07-10 21:38:48 -0700
commit21c994b321a20bfa541c727a49a71b1a5d1ca9e8 (patch)
tree86a0cfbcc07c47a356833d38afbde03439b7852f
parent293eb409c165b0080178f378211dde1cbb81c916 (diff)
downloadchef-require_the_right_shellout.tar.gz
Remove require mixlib/shellouts where not necessaryrequire_the_right_shellout
the dscl user provider uses mixin/shell_out instead and the specs don't seem to use mixlib/shellout or actually need the require. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/user/dscl.rb2
-rw-r--r--spec/unit/provider/service/windows_spec.rb1
-rw-r--r--spec/unit/provider/user/aix_spec.rb1
-rw-r--r--spec/unit/provider/user/dscl_spec.rb1
-rw-r--r--spec/unit/provider/user/solaris_spec.rb1
5 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/provider/user/dscl.rb b/lib/chef/provider/user/dscl.rb
index 9584e20656..a459525bac 100644
--- a/lib/chef/provider/user/dscl.rb
+++ b/lib/chef/provider/user/dscl.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "mixlib/shellout"
+require "chef/mixin/shell_out"
require "chef/provider/user"
require "openssl"
require "plist"
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb
index dd59089418..1b7f91df76 100644
--- a/spec/unit/provider/service/windows_spec.rb
+++ b/spec/unit/provider/service/windows_spec.rb
@@ -18,7 +18,6 @@
#
require "spec_helper"
-require "mixlib/shellout"
describe Chef::Provider::Service::Windows, "load_current_resource", :windows_only do
include_context "Win32"
diff --git a/spec/unit/provider/user/aix_spec.rb b/spec/unit/provider/user/aix_spec.rb
index aa62edd878..f8b5b8a324 100644
--- a/spec/unit/provider/user/aix_spec.rb
+++ b/spec/unit/provider/user/aix_spec.rb
@@ -15,7 +15,6 @@
# limitations under the License.
#
-require "mixlib/shellout"
require "spec_helper"
describe Chef::Provider::User::Aix do
diff --git a/spec/unit/provider/user/dscl_spec.rb b/spec/unit/provider/user/dscl_spec.rb
index 928cf020e8..c93a1eb4a8 100644
--- a/spec/unit/provider/user/dscl_spec.rb
+++ b/spec/unit/provider/user/dscl_spec.rb
@@ -18,7 +18,6 @@
require "spec_helper"
require "ostruct"
-require "mixlib/shellout"
describe Chef::Provider::User::Dscl do
before do
diff --git a/spec/unit/provider/user/solaris_spec.rb b/spec/unit/provider/user/solaris_spec.rb
index b39e065f48..11c8656a5c 100644
--- a/spec/unit/provider/user/solaris_spec.rb
+++ b/spec/unit/provider/user/solaris_spec.rb
@@ -20,7 +20,6 @@
# limitations under the License.
#
-require "mixlib/shellout"
require "spec_helper"
describe Chef::Provider::User::Solaris do