diff options
author | harikesh-kolekar <harikesh.kolekar@msystechnologies.com> | 2018-01-30 10:37:17 +0000 |
---|---|---|
committer | harikesh-kolekar <harikesh.kolekar@msystechnologies.com> | 2018-01-31 16:56:06 +0530 |
commit | ed4b10b43cf04c51232a99a818866af768241add (patch) | |
tree | e0e29b919a7af20fea68bd29fac87577ac70ccbf /lib | |
parent | 85ad3ee585ab50d173c083325d106967d2161dab (diff) | |
download | chef-ed4b10b43cf04c51232a99a818866af768241add.tar.gz |
require file as per alphabetical order
Signed-off-by: harikesh-kolekar <harikesh.kolekar@msystechnologies.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/windows_env.rb | 5 | ||||
-rw-r--r-- | lib/chef/providers.rb | 3 | ||||
-rw-r--r-- | lib/chef/resources.rb | 1 |
3 files changed, 2 insertions, 7 deletions
diff --git a/lib/chef/provider/windows_env.rb b/lib/chef/provider/windows_env.rb index 4cbcc8a478..b5b06666f3 100644 --- a/lib/chef/provider/windows_env.rb +++ b/lib/chef/provider/windows_env.rb @@ -26,6 +26,7 @@ class Chef include Chef::Mixin::WindowsEnvHelper attr_accessor :key_exists + provides :env, os: "windows" provides :windows_env, os: "windows" def whyrun_supported? @@ -51,10 +52,6 @@ class Chef current_resource end - def env_value(key_name) - raise Chef::Exceptions::WindowsEnv, "#{self} provider does not implement env_value!" - end - def env_key_exists(key_name) env_value(key_name) ? true : false end diff --git a/lib/chef/providers.rb b/lib/chef/providers.rb index 582f055260..8b07e1b405 100644 --- a/lib/chef/providers.rb +++ b/lib/chef/providers.rb @@ -27,8 +27,6 @@ require "chef/provider/cron/aix" require "chef/provider/directory" require "chef/provider/dsc_script" require "chef/provider/dsc_resource" -require "chef/provider/windows_env" -require "chef/provider/erl_call" require "chef/provider/execute" require "chef/provider/file" require "chef/provider/git" @@ -57,6 +55,7 @@ require "chef/provider/systemd_unit" require "chef/provider/template" require "chef/provider/user" require "chef/provider/whyrun_safe_ruby_block" +require "chef/provider/windows_env" require "chef/provider/yum_repository" require "chef/provider/windows_task" require "chef/provider/zypper_repository" diff --git a/lib/chef/resources.rb b/lib/chef/resources.rb index b250d8d4d5..b580a01c29 100644 --- a/lib/chef/resources.rb +++ b/lib/chef/resources.rb @@ -33,7 +33,6 @@ require "chef/resource/dpkg_package" require "chef/resource/dnf_package" require "chef/resource/dsc_script" require "chef/resource/dsc_resource" -require "chef/resource/erl_call" require "chef/resource/execute" require "chef/resource/file" require "chef/resource/freebsd_package" |