summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-01-04 16:07:44 -0800
committerJohn McCrae <john.mccrae@progress.com>2022-01-31 15:54:55 -0800
commit565b5b6bc3cd1f6831e8d86f46c6b02c426f5bc4 (patch)
tree23aa195334614d435809c2e3e1f6f7dbf8c7c635 /Rakefile
parent8bdf6fdd77802173e2d57e6bd2cd10f9f5ca3fa5 (diff)
downloadchef-565b5b6bc3cd1f6831e8d86f46c6b02c426f5bc4.tar.gz
Updated the chef client to retrieve certs from the Windows registry. Tests included. This is PR3 since I keep trashing them
Signed-off-by: John McCrae <john.mccrae@progress.com>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile19
1 files changed, 0 insertions, 19 deletions
diff --git a/Rakefile b/Rakefile
index b0dfb63b26..17c6a62ca8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -99,25 +99,6 @@ task :register_eventlog do
end
end
-desc "Copies powershell_exec related binaries from the latest built Habitat Packages"
-task :update_chef_exec_dll do
- raise "This task must be run on Windows since we are installing a Windows targeted package!" unless Gem.win_platform?
-
- require "mkmf"
- raise "Unable to locate Habitat cli. Please install Habitat cli before invoking this task!" unless find_executable "hab"
-
- sh("hab pkg install chef/chef-powershell-shim")
- sh("hab pkg install chef/chef-powershell-shim-x86")
- x64 = `hab pkg path chef/chef-powershell-shim`.chomp.tr("\\", "/")
- x86 = `hab pkg path chef/chef-powershell-shim-x86`.chomp.tr("\\", "/")
- FileUtils.rm_rf(Dir["distro/ruby_bin_folder/AMD64/*"])
- FileUtils.rm_rf(Dir["distro/ruby_bin_folder/x86/*"])
- puts "Copying #{x64}/bin/* to distro/ruby_bin_folder/AMD64"
- FileUtils.cp_r(Dir["#{x64}/bin/*"], "distro/ruby_bin_folder/AMD64")
- puts "Copying #{x86}/bin/* to distro/ruby_bin_folder/x86"
- FileUtils.cp_r(Dir["#{x86}/bin/*"], "distro/ruby_bin_folder/x86")
-end
-
begin
require "chefstyle"
require "rubocop/rake_task"