summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2021-10-13 13:20:54 -0700
committerJohn McCrae <john.mccrae@progress.com>2021-10-13 13:20:54 -0700
commiteaf5a1850f3bc688b66539c19cbe9b0a01f1a3db (patch)
tree99dd85d4713be6686341996d5dad241568e8f834
parent32249daba2acd8e8825debbebc03c32da6202754 (diff)
downloadchef-eaf5a1850f3bc688b66539c19cbe9b0a01f1a3db.tar.gz
Moving powershell_exec to a new gem
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--chef-powershell/Gemfile2
-rw-r--r--chef-powershell/chef-powershell.gemspec2
-rw-r--r--chef-powershell/lib/chef-powershell/powershell.rb1
-rw-r--r--chef-powershell/lib/chef-powershell/powershell_exec.rb1
4 files changed, 2 insertions, 4 deletions
diff --git a/chef-powershell/Gemfile b/chef-powershell/Gemfile
index 53c0879a6c..9f5370b3cd 100644
--- a/chef-powershell/Gemfile
+++ b/chef-powershell/Gemfile
@@ -14,4 +14,4 @@ if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
assemblies = Dir.glob(File.expand_path("bin/ruby_bin_folder/#{ENV["PROCESSOR_ARCHITECTURE"]}", __dir__) + "**/*")
FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_WINDOWS_DLLS_COPIED"]
ENV["_BUNDLER_WINDOWS_DLLS_COPIED"] = "1"
-end \ No newline at end of file
+end
diff --git a/chef-powershell/chef-powershell.gemspec b/chef-powershell/chef-powershell.gemspec
index 3fc3a38545..8c32640da6 100644
--- a/chef-powershell/chef-powershell.gemspec
+++ b/chef-powershell/chef-powershell.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
"source_code_uri" => "https://github.com/chef/chef/tree/main/chef-powershell",
}
- spec.require_paths = ["lib", "bin"]
+ spec.require_paths = %w{lib bin}
#
# NOTE: DO NOT ADD RUNTIME DEPS TO OTHER CHEF ECOSYSTEM GEMS
diff --git a/chef-powershell/lib/chef-powershell/powershell.rb b/chef-powershell/lib/chef-powershell/powershell.rb
index 1702524753..3376b2cf85 100644
--- a/chef-powershell/lib/chef-powershell/powershell.rb
+++ b/chef-powershell/lib/chef-powershell/powershell.rb
@@ -18,7 +18,6 @@
require "ffi" unless defined?(FFI)
require_relative "json_compat"
-
module ChefPowerShell
extend FFI::Library
diff --git a/chef-powershell/lib/chef-powershell/powershell_exec.rb b/chef-powershell/lib/chef-powershell/powershell_exec.rb
index 9d73caa1dd..a77562da3c 100644
--- a/chef-powershell/lib/chef-powershell/powershell_exec.rb
+++ b/chef-powershell/lib/chef-powershell/powershell_exec.rb
@@ -95,7 +95,6 @@ require_relative "./pwsh"
# credentials of the user running Chef Client are used.
#
-
module ChefPowerShell
module PowershellExec
# Run a command under PowerShell via a managed (.NET) API.