chef-powershell 18.6.3 → 18.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -3
  3. data/bin/ruby_bin_folder/AMD64/Chef.PowerShell.dll +0 -0
  4. data/bin/ruby_bin_folder/AMD64/Chef.Powershell.Wrapper.dll +0 -0
  5. data/bin/ruby_bin_folder/AMD64/Ijwhost.dll +0 -0
  6. data/bin/ruby_bin_folder/AMD64/Newtonsoft.Json.dll +0 -0
  7. data/bin/ruby_bin_folder/AMD64/host/fxr/8.0.0/hostfxr.dll +0 -0
  8. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
  9. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Chef.Powershell.Core.dll +0 -0
  10. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Chef.Powershell.Core.pdb +0 -0
  11. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Ijwhost.dll +0 -0
  12. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.CSharp.dll +0 -0
  13. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.NETCore.App.deps.json +248 -249
  14. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.PowerShell.CoreCLR.Eventing.dll +0 -0
  15. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.VisualBasic.Core.dll +0 -0
  16. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.VisualBasic.dll +0 -0
  17. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.Win32.Primitives.dll +0 -0
  18. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.Win32.Registry.dll +0 -0
  19. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Newtonsoft.Json.dll +0 -0
  20. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.AppContext.dll +0 -0
  21. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Buffers.dll +0 -0
  22. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.Concurrent.dll +0 -0
  23. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.Immutable.dll +0 -0
  24. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.NonGeneric.dll +0 -0
  25. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.Specialized.dll +0 -0
  26. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.dll +0 -0
  27. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.Annotations.dll +0 -0
  28. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.DataAnnotations.dll +0 -0
  29. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.EventBasedAsync.dll +0 -0
  30. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.Primitives.dll +0 -0
  31. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.TypeConverter.dll +0 -0
  32. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.dll +0 -0
  33. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Configuration.ConfigurationManager.dll +0 -0
  34. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Configuration.dll +0 -0
  35. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Console.dll +0 -0
  36. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Core.dll +0 -0
  37. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Data.Common.dll +0 -0
  38. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Data.DataSetExtensions.dll +0 -0
  39. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Data.dll +0 -0
  40. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Contracts.dll +0 -0
  41. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Debug.dll +0 -0
  42. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.DiagnosticSource.dll +0 -0
  43. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.EventLog.Messages.dll +0 -0
  44. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.EventLog.dll +0 -0
  45. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.FileVersionInfo.dll +0 -0
  46. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.PerformanceCounter.dll +0 -0
  47. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Process.dll +0 -0
  48. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.StackTrace.dll +0 -0
  49. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.TextWriterTraceListener.dll +0 -0
  50. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Tools.dll +0 -0
  51. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.TraceSource.dll +0 -0
  52. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Tracing.dll +0 -0
  53. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Drawing.Primitives.dll +0 -0
  54. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Drawing.dll +0 -0
  55. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Dynamic.Runtime.dll +0 -0
  56. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Formats.Asn1.dll +0 -0
  57. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Formats.Tar.dll +0 -0
  58. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Globalization.Calendars.dll +0 -0
  59. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Globalization.Extensions.dll +0 -0
  60. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Globalization.dll +0 -0
  61. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.Brotli.dll +0 -0
  62. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.FileSystem.dll +0 -0
  63. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.Native.dll +0 -0
  64. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.ZipFile.dll +0 -0
  65. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.dll +0 -0
  66. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.AccessControl.dll +0 -0
  67. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.DriveInfo.dll +0 -0
  68. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.Primitives.dll +0 -0
  69. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.Watcher.dll +0 -0
  70. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.dll +0 -0
  71. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.IsolatedStorage.dll +0 -0
  72. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.MemoryMappedFiles.dll +0 -0
  73. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Pipes.AccessControl.dll +0 -0
  74. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Pipes.dll +0 -0
  75. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.UnmanagedMemoryStream.dll +0 -0
  76. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.dll +0 -0
  77. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.Expressions.dll +0 -0
  78. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.Parallel.dll +0 -0
  79. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.Queryable.dll +0 -0
  80. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.dll +0 -0
  81. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Management.Automation.dll +0 -0
  82. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Memory.dll +0 -0
  83. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Http.Json.dll +0 -0
  84. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Http.dll +0 -0
  85. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.HttpListener.dll +0 -0
  86. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Mail.dll +0 -0
  87. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.NameResolution.dll +0 -0
  88. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.NetworkInformation.dll +0 -0
  89. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Ping.dll +0 -0
  90. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Primitives.dll +0 -0
  91. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Quic.dll +0 -0
  92. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Requests.dll +0 -0
  93. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Security.dll +0 -0
  94. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.ServicePoint.dll +0 -0
  95. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Sockets.dll +0 -0
  96. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebClient.dll +0 -0
  97. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebHeaderCollection.dll +0 -0
  98. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebProxy.dll +0 -0
  99. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebSockets.Client.dll +0 -0
  100. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebSockets.dll +0 -0
  101. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.dll +0 -0
  102. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Numerics.Vectors.dll +0 -0
  103. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Numerics.dll +0 -0
  104. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ObjectModel.dll +0 -0
  105. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.CoreLib.dll +0 -0
  106. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.DataContractSerialization.dll +0 -0
  107. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.Uri.dll +0 -0
  108. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.Xml.Linq.dll +0 -0
  109. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.Xml.dll +0 -0
  110. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.DispatchProxy.dll +0 -0
  111. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Emit.ILGeneration.dll +0 -0
  112. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Emit.Lightweight.dll +0 -0
  113. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Emit.dll +0 -0
  114. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Extensions.dll +0 -0
  115. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Metadata.dll +0 -0
  116. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Primitives.dll +0 -0
  117. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.TypeExtensions.dll +0 -0
  118. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.dll +0 -0
  119. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Resources.Reader.dll +0 -0
  120. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Resources.ResourceManager.dll +0 -0
  121. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Resources.Writer.dll +0 -0
  122. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  123. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.CompilerServices.VisualC.dll +0 -0
  124. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Extensions.dll +0 -0
  125. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Handles.dll +0 -0
  126. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.InteropServices.JavaScript.dll +0 -0
  127. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
  128. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.InteropServices.dll +0 -0
  129. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Intrinsics.dll +0 -0
  130. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Loader.dll +0 -0
  131. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Numerics.dll +0 -0
  132. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Formatters.dll +0 -0
  133. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Json.dll +0 -0
  134. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Primitives.dll +0 -0
  135. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Xml.dll +0 -0
  136. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.dll +0 -0
  137. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.dll +0 -0
  138. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.AccessControl.dll +0 -0
  139. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Claims.dll +0 -0
  140. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Algorithms.dll +0 -0
  141. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Cng.dll +0 -0
  142. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Csp.dll +0 -0
  143. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Encoding.dll +0 -0
  144. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.OpenSsl.dll +0 -0
  145. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Primitives.dll +0 -0
  146. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.ProtectedData.dll +0 -0
  147. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.X509Certificates.dll +0 -0
  148. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.dll +0 -0
  149. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Principal.Windows.dll +0 -0
  150. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Principal.dll +0 -0
  151. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.SecureString.dll +0 -0
  152. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.dll +0 -0
  153. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ServiceModel.Web.dll +0 -0
  154. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ServiceProcess.dll +0 -0
  155. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encoding.CodePages.dll +0 -0
  156. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encoding.Extensions.dll +0 -0
  157. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encoding.dll +0 -0
  158. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encodings.Web.dll +0 -0
  159. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Json.dll +0 -0
  160. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.RegularExpressions.dll +0 -0
  161. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Channels.dll +0 -0
  162. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Overlapped.dll +0 -0
  163. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.Dataflow.dll +0 -0
  164. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.Extensions.dll +0 -0
  165. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.Parallel.dll +0 -0
  166. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.dll +0 -0
  167. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Thread.dll +0 -0
  168. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.ThreadPool.dll +0 -0
  169. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Timer.dll +0 -0
  170. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.dll +0 -0
  171. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Transactions.Local.dll +0 -0
  172. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Transactions.dll +0 -0
  173. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ValueTuple.dll +0 -0
  174. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Web.HttpUtility.dll +0 -0
  175. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Web.dll +0 -0
  176. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Windows.dll +0 -0
  177. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.Linq.dll +0 -0
  178. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.ReaderWriter.dll +0 -0
  179. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.Serialization.dll +0 -0
  180. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XDocument.dll +0 -0
  181. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XPath.XDocument.dll +0 -0
  182. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XPath.dll +0 -0
  183. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XmlDocument.dll +0 -0
  184. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XmlSerializer.dll +0 -0
  185. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.dll +0 -0
  186. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.dll +0 -0
  187. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/WindowsBase.dll +0 -0
  188. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/clretwrc.dll +0 -0
  189. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/clrgc.dll +0 -0
  190. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/clrjit.dll +0 -0
  191. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/coreclr.dll +0 -0
  192. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/createdump.exe +0 -0
  193. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/getfilesiginforedist.dll +0 -0
  194. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/getfilesiginforedistwrapper.dll +0 -0
  195. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/hostfxr.dll +0 -0
  196. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/hostpolicy.dll +0 -0
  197. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore.dll +0 -0
  198. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore_amd64_amd64_8.0.824.36612.dll +0 -0
  199. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordbi.dll +0 -0
  200. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscorlib.dll +0 -0
  201. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscorrc.dll +0 -0
  202. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/netstandard.dll +0 -0
  203. data/chef-powershell.gemspec +6 -3
  204. data/ext/chef-powershell/extconf.rb +188 -0
  205. data/lib/chef-powershell/exceptions.rb +1 -1
  206. data/lib/chef-powershell/powershell.rb +5 -5
  207. data/lib/chef-powershell/powershell_exec.rb +19 -15
  208. data/lib/chef-powershell/pwsh.rb +15 -18
  209. data/lib/chef-powershell/version.rb +1 -1
  210. data/lib/chef-powershell.rb +1 -1
  211. data/spec/unit/powershell_exec_spec.rb +6 -2
  212. metadata +10 -9
  213. data/bin/ruby_bin_folder/AMD64/.keep +0 -0
  214. data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore_amd64_amd64_8.0.724.31311.dll +0 -0
@@ -0,0 +1,188 @@
1
+ # frozen_string_literal: true
2
+ #
3
+ # Author:: John McCrae (<john.mccrae@progress.com>)
4
+ # Copyright:: Copyright, Chef Software Inc.
5
+ # Copyright:: Copyright, Progress Software Inc.
6
+ # License:: Apache License, Version 2.0
7
+ #
8
+ # Licensed under the Apache License, Version 2.0 (the "License");
9
+ # you may not use this file except in compliance with the License.
10
+ # You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+
21
+ #
22
+ # Post-install extension to copy required DLL files to Chef's embedded bin directory.
23
+ # This ensures that the PowerShell wrapper DLLs are available to Chef even when
24
+ # chef-powershell gem is updated independently of Chef releases.
25
+ #
26
+
27
+ require "fileutils"
28
+ require "rbconfig"
29
+
30
+ # Only run on Windows platforms
31
+ if RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
32
+
33
+ # Required DLL files that must be present in chef\embedded\bin
34
+ REQUIRED_DLLS = [
35
+ "vcruntime140.dll",
36
+ "vcruntime140_1.dll",
37
+ "ijwhost.dll",
38
+ "msvcp140.dll",
39
+ ].freeze
40
+
41
+ def log(message)
42
+ puts "[chef-powershell] #{message}"
43
+ end
44
+
45
+ def find_chef_embedded_bin
46
+ # Use RbConfig to find the embedded bin directory
47
+ # This works because Chef installs gems into its embedded Ruby
48
+ embedded_bin_path = RbConfig::CONFIG["bindir"]
49
+
50
+ # Verify the path exists and normalize it
51
+ if embedded_bin_path && File.directory?(embedded_bin_path)
52
+ return embedded_bin_path.tr("\\", "/")
53
+ end
54
+
55
+ nil
56
+ end
57
+
58
+ def find_source_dlls
59
+ # Look for DLLs in the gem's bin directory structure
60
+ # They should be in bin/ruby_bin_folder/<ARCH>/
61
+ gem_bin_dir = File.expand_path("../../bin", __dir__)
62
+ arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
63
+
64
+ possible_locations = [
65
+ File.join(gem_bin_dir, "ruby_bin_folder", arch),
66
+ gem_bin_dir,
67
+ ]
68
+
69
+ possible_locations.each do |location|
70
+ if File.directory?(location)
71
+ # Check if at least one required DLL exists here
72
+ if REQUIRED_DLLS.any? { |dll| File.exist?(File.join(location, dll)) }
73
+ return location
74
+ end
75
+ end
76
+ end
77
+
78
+ nil
79
+ end
80
+
81
+ def file_needs_update?(source, dest)
82
+ return true unless File.exist?(dest)
83
+
84
+ # Compare file sizes and modification times
85
+ source_stat = File.stat(source)
86
+ dest_stat = File.stat(dest)
87
+
88
+ # Update if sizes differ or source is newer
89
+ source_stat.size != dest_stat.size || source_stat.mtime > dest_stat.mtime
90
+ end
91
+
92
+ def install_dlls
93
+ log "Checking for required PowerShell DLL files..."
94
+
95
+ # Find the Chef embedded bin directory
96
+ target_dir = find_chef_embedded_bin
97
+
98
+ unless target_dir
99
+ log "WARNING: Could not locate Chef embedded bin directory."
100
+ log "DLL files will not be installed automatically."
101
+ log "If you are using Chef, please ensure the following DLLs are in chef/embedded/bin:"
102
+ REQUIRED_DLLS.each { |dll| log " - #{dll}" }
103
+ return
104
+ end
105
+
106
+ log "Found Chef embedded bin directory: #{target_dir}"
107
+
108
+ # Find source DLLs
109
+ source_dir = find_source_dlls
110
+
111
+ unless source_dir
112
+ arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
113
+ log "WARNING: Could not locate source DLL files in gem installation."
114
+ log "Expected location: bin/ruby_bin_folder/#{arch}/"
115
+ log "DLL files will not be installed."
116
+ return
117
+ end
118
+
119
+ log "Found source DLLs in: #{source_dir}"
120
+
121
+ # Copy each required DLL if present and needs updating
122
+ installed = []
123
+ updated = []
124
+ missing = []
125
+ skipped = []
126
+
127
+ REQUIRED_DLLS.each do |dll|
128
+ source_file = File.join(source_dir, dll)
129
+ dest_file = File.join(target_dir, dll)
130
+
131
+ unless File.exist?(source_file)
132
+ missing << dll
133
+ next
134
+ end
135
+
136
+ begin
137
+ if File.exist?(dest_file)
138
+ if file_needs_update?(source_file, dest_file)
139
+ FileUtils.cp(source_file, dest_file, preserve: true)
140
+ updated << dll
141
+ log "Updated: #{dll}"
142
+ else
143
+ skipped << dll
144
+ end
145
+ else
146
+ FileUtils.cp(source_file, dest_file, preserve: true)
147
+ installed << dll
148
+ log "Installed: #{dll}"
149
+ end
150
+ rescue => e
151
+ log "ERROR: Failed to copy #{dll}: #{e.message}"
152
+ end
153
+ end
154
+
155
+ # Summary
156
+ log "Installation complete:"
157
+ log " - Newly installed: #{installed.length}" unless installed.empty?
158
+ log " - Updated: #{updated.length}" unless updated.empty?
159
+ log " - Already up-to-date: #{skipped.length}" unless skipped.empty?
160
+ log " - Missing from source: #{missing.length}" unless missing.empty?
161
+
162
+ if missing.any?
163
+ log "WARNING: The following DLL files were not found in the gem:"
164
+ missing.each { |dll| log " - #{dll}" }
165
+ end
166
+ end
167
+
168
+ begin
169
+ install_dlls
170
+ rescue => e
171
+ log "ERROR: Post-install script failed: #{e.message}"
172
+ log e.backtrace.join("\n") if ENV["DEBUG"]
173
+ end
174
+
175
+ else
176
+ puts "[chef-powershell] Skipping DLL installation (non-Windows platform)"
177
+ end
178
+
179
+ # Create a dummy Makefile to satisfy RubyGems extension mechanism
180
+ File.open("Makefile", "w") do |f|
181
+ f.puts "# Dummy Makefile for chef-powershell post-install extension"
182
+ f.puts "install:"
183
+ f.puts "\t@echo 'No compilation needed'"
184
+ f.puts "clean:"
185
+ f.puts "\t@echo 'Nothing to clean'"
186
+ f.puts "all:"
187
+ f.puts "\t@echo 'Nothing to build'"
188
+ end
@@ -24,4 +24,4 @@ class ChefPowerShell
24
24
  class ParseError < RuntimeError; end
25
25
  end
26
26
  end
27
- end
27
+ end
@@ -54,11 +54,11 @@ class ChefPowerShell
54
54
  searched << hab_dll
55
55
  return hab_dll if File.exist?(hab_dll)
56
56
  end
57
- rescue => e
57
+ rescue
58
58
  # ignore any hab errors, just proceed
59
59
  end
60
60
 
61
- raise LoadError, "Chef.PowerShell wrapper DLL not found. Searched: #{searched.join(', ')}. Populate binaries via 'rake update_chef_powershell_dlls' or set CHEF_POWERSHELL_BIN."
61
+ raise LoadError, "Chef.PowerShell wrapper DLL not found. Searched: #{searched.join(", ")}. Populate binaries via 'rake update_chef_powershell_dlls' or set CHEF_POWERSHELL_BIN."
62
62
  end
63
63
 
64
64
  # Run a command under PowerShell via FFI
@@ -86,7 +86,7 @@ class ChefPowerShell
86
86
  # @return [Boolean]
87
87
  #
88
88
  def error?
89
- return true if errors.count > 0
89
+ return true if errors.any?
90
90
 
91
91
  false
92
92
  end
@@ -175,11 +175,11 @@ class ChefPowerShell
175
175
 
176
176
  # Set it every time because the test suite actually switches
177
177
  # the DLL pointed to.
178
- PowerMod.set_ps_dll(@powershell_dll)
178
+ PowerMod.set_ps_dll(@powershell_dll)
179
179
  PowerMod.set_ps_timeout(timeout)
180
180
 
181
181
  PowerMod.set_ps_command(script)
182
- execution = PowerMod.do_work
182
+ PowerMod.do_work
183
183
  # we returned "true" to escape retry, but we still need to check the
184
184
  # exception and raise it if it exists.
185
185
  raise PowerMod.exception if PowerMod.exception
@@ -15,8 +15,8 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
 
18
- require_relative "./powershell"
19
- require_relative "./pwsh"
18
+ require_relative "powershell"
19
+ require_relative "pwsh"
20
20
 
21
21
  # The Chef-PowerShell gem provides in-process access to the PowerShell engine.
22
22
  #
@@ -102,19 +102,23 @@ class ChefPowerShell
102
102
  # We don't want to move files around so we're setting the variable here to keep everything tidy.
103
103
  # file_path = Gem.loaded_specs["chef-powershell"].full_gem_path + "/bin/ruby_bin_folder/#{ENV["PROCESSOR_ARCHITECTURE"]}/"
104
104
  # ENV["CHEF_POWERSHELL_BIN"] = file_path
105
- file_path = File.join(Gem.loaded_specs["chef-powershell"].full_gem_path, "bin", "ruby_bin_folder", ENV["PROCESSOR_ARCHITECTURE"] || "AMD64")
106
- if File.directory?(file_path)
107
- ENV["CHEF_POWERSHELL_BIN"] = file_path
108
- else
109
- # Habitat fallback: try locating the built package and use its bin directory
110
- begin
111
- hab_path = `hab pkg path chef/chef-powershell-shim 2>NUL`.strip
112
- if hab_path != "" && File.directory?(hab_path)
113
- candidate = File.join(hab_path, "bin")
114
- ENV["CHEF_POWERSHELL_BIN"] = candidate if File.directory?(candidate)
105
+ gem_spec = Gem.loaded_specs["chef-powershell"]
106
+ if gem_spec
107
+ arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
108
+ file_path = File.join(gem_spec.full_gem_path, "bin", "ruby_bin_folder", arch)
109
+ if File.directory?(file_path)
110
+ ENV["CHEF_POWERSHELL_BIN"] = file_path
111
+ else
112
+ # Habitat fallback: try locating the built package and use its bin directory
113
+ begin
114
+ hab_path = `hab pkg path chef/chef-powershell-shim 2>NUL`.strip
115
+ if hab_path != "" && File.directory?(hab_path)
116
+ candidate = File.join(hab_path, "bin")
117
+ ENV["CHEF_POWERSHELL_BIN"] = candidate if File.directory?(candidate)
118
+ end
119
+ rescue
120
+ # ignore habitat lookup failures
115
121
  end
116
- rescue
117
- # ignore habitat lookup failures
118
122
  end
119
123
  end
120
124
  # Run a command under PowerShell via a managed (.NET) API.
@@ -145,4 +149,4 @@ class ChefPowerShell
145
149
  end
146
150
  end
147
151
  end
148
- end
152
+ end
@@ -19,18 +19,23 @@ class ChefPowerShell
19
19
  class Pwsh < ChefPowerShell::PowerShell
20
20
 
21
21
  def self.resolve_core_wrapper_dll
22
- base = Gem.loaded_specs["chef-powershell"].full_gem_path
22
+ gem_spec = Gem.loaded_specs["chef-powershell"]
23
23
  arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
24
- dll_path = File.join(base, "bin", "ruby_bin_folder", arch, "shared", "Microsoft.NETCore.App", "8.0.0", "Chef.PowerShell.Wrapper.Core.dll")
25
- return dll_path if File.exist?(dll_path)
24
+
25
+ if gem_spec
26
+ base = gem_spec.full_gem_path
27
+ dll_path = File.join(base, "bin", "ruby_bin_folder", arch, "shared", "Microsoft.NETCore.App", "8.0.0", "Chef.PowerShell.Wrapper.Core.dll")
28
+ return dll_path if File.exist?(dll_path)
29
+ end
26
30
 
27
31
  override = ENV["CHEF_POWERSHELL_BIN"]
28
32
  candidate = override && File.join(override, "shared", "Microsoft.NETCore.App", "8.0.0", "Chef.PowerShell.Wrapper.Core.dll")
29
33
  return candidate if candidate && File.exist?(candidate)
30
34
 
35
+ dll_path = gem_spec ? File.join(gem_spec.full_gem_path, "bin", "ruby_bin_folder", arch, "shared", "Microsoft.NETCore.App", "8.0.0", "Chef.PowerShell.Wrapper.Core.dll") : File.join("bin", "ruby_bin_folder", arch, "shared", "Microsoft.NETCore.App", "8.0.0", "Chef.PowerShell.Wrapper.Core.dll")
31
36
  raise LoadError, "Pwsh Core wrapper DLL not found at #{dll_path}. Populate binaries via rake update_chef_powershell_dlls"
32
37
  end
33
-
38
+
34
39
  # Run a command under pwsh (powershell core) via FFI
35
40
  # This implementation requires the managed dll, native wrapper and a
36
41
  # published, self contained dotnet core directory tree to exist in the
@@ -44,8 +49,6 @@ class ChefPowerShell
44
49
  super
45
50
  end
46
51
 
47
- protected
48
-
49
52
  def exec(script, timeout: -1)
50
53
  # Note that we need to override the location of the shared dotnet core library
51
54
  # location. With most .net core applications, you can simply publish them as a
@@ -60,17 +63,13 @@ class ChefPowerShell
60
63
  original_dotnet_root = ENV["DOTNET_ROOT"]
61
64
  original_dotnet_root_x86 = ENV["DOTNET_ROOT(x86)"]
62
65
 
63
- # ENV["DOTNET_MULTILEVEL_LOOKUP"] = "0"
64
- # ENV["DOTNET_ROOT"] = Gem.loaded_specs["chef-powershell"].full_gem_path + "/bin/ruby_bin_folder/AMD64"
65
- # ENV["DOTNET_ROOT(x86)"] = Gem.loaded_specs["chef-powershell"].full_gem_path + "/bin/ruby_bin_folder/x86"
66
-
67
- # @powershell_dll = Gem.loaded_specs["chef-powershell"].full_gem_path + "/bin/ruby_bin_folder/#{ENV["PROCESSOR_ARCHITECTURE"]}/shared/Microsoft.NETCore.App/8.0.0/Chef.PowerShell.Wrapper.Core.dll"
68
-
69
- # super
70
66
  ENV["DOTNET_MULTILEVEL_LOOKUP"] = "0"
71
- arch_root = File.join(Gem.loaded_specs["chef-powershell"].full_gem_path, "bin", "ruby_bin_folder", "AMD64")
72
- ENV["DOTNET_ROOT"] = arch_root
73
- ENV["DOTNET_ROOT(x86)"] = File.join(Gem.loaded_specs["chef-powershell"].full_gem_path, "bin", "ruby_bin_folder", "x86")
67
+ gem_spec = Gem.loaded_specs["chef-powershell"]
68
+ if gem_spec
69
+ arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
70
+ arch_root = File.join(gem_spec.full_gem_path, "bin", "ruby_bin_folder", arch)
71
+ ENV["DOTNET_ROOT"] = arch_root
72
+ end
74
73
 
75
74
  @powershell_dll = self.class.resolve_core_wrapper_dll
76
75
  super
@@ -88,8 +87,6 @@ class ChefPowerShell
88
87
  # ensures that the correct architecture binaries are installed into the path.
89
88
  # Also note that the version of pwsh is determined by which assemblies the dll was
90
89
  # built with. To update powershell, those dependencies must be bumped.
91
- @powershell_dll = Gem.loaded_specs["chef-powershell"].full_gem_path + "/bin/ruby_bin_folder/#{ENV["PROCESSOR_ARCHITECTURE"]}/shared/Microsoft.NETCore.App/8.0.0/Chef.PowerShell.Wrapper.Core.dll"
92
- # @dll ||= @powershell_dll
93
90
  @dll ||= resolve_core_wrapper_dll
94
91
  end
95
92
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
  module ChefPowerShellModule
18
18
  CHEFPOWERSHELL_ROOT = File.expand_path("..", __dir__)
19
- VERSION = "18.6.3"
19
+ VERSION = "18.6.6"
20
20
  end
@@ -20,4 +20,4 @@ require_relative "chef-powershell/powershell_exec"
20
20
 
21
21
  module ChefPowerShellModule
22
22
  include ChefPowerShell::ChefPowerShellModule::PowerShellExec
23
- end
23
+ end
@@ -23,8 +23,12 @@ describe ChefPowerShell::ChefPowerShellModule::PowerShellExec, :windows_only do
23
23
  subject(:object) { powershell_mixin.new }
24
24
 
25
25
  before do
26
- file_path = Gem.loaded_specs["chef-powershell"].full_gem_path + "/bin/ruby_bin_folder/#{ENV["PROCESSOR_ARCHITECTURE"]}/"
27
- ENV["CHEF_POWERSHELL_BIN"] = file_path
26
+ gem_spec = Gem.loaded_specs["chef-powershell"]
27
+ if gem_spec
28
+ arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
29
+ file_path = File.join(gem_spec.full_gem_path, "bin", "ruby_bin_folder", arch)
30
+ ENV["CHEF_POWERSHELL_BIN"] = file_path
31
+ end
28
32
  end
29
33
 
30
34
  describe "#powershell_exec" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-powershell
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.6.3
4
+ version: 18.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-24 00:00:00.000000000 Z
11
+ date: 2025-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -38,16 +38,16 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.4'
41
- description:
41
+ description:
42
42
  email:
43
43
  - oss@chef.io
44
44
  executables: []
45
- extensions: []
45
+ extensions:
46
+ - ext/chef-powershell/extconf.rb
46
47
  extra_rdoc_files: []
47
48
  files:
48
49
  - LICENSE
49
50
  - Rakefile
50
- - bin/ruby_bin_folder/AMD64/.keep
51
51
  - bin/ruby_bin_folder/AMD64/Chef.PowerShell.dll
52
52
  - bin/ruby_bin_folder/AMD64/Chef.Powershell.Wrapper.dll
53
53
  - bin/ruby_bin_folder/AMD64/Ijwhost.dll
@@ -297,7 +297,7 @@ files:
297
297
  - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/microsoft.management.infrastructure.native.dll
298
298
  - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/microsoft.management.infrastructure.native.unmanaged.dll
299
299
  - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore.dll
300
- - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore_amd64_amd64_8.0.724.31311.dll
300
+ - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore_amd64_amd64_8.0.824.36612.dll
301
301
  - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordbi.dll
302
302
  - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscorlib.dll
303
303
  - bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscorrc.dll
@@ -321,6 +321,7 @@ files:
321
321
  - bin/ruby_bin_folder/AMD64/vcruntime140_1.dll
322
322
  - bin/ruby_bin_folder/AMD64/vcruntime140_threads.dll
323
323
  - chef-powershell.gemspec
324
+ - ext/chef-powershell/extconf.rb
324
325
  - lib/chef-powershell.rb
325
326
  - lib/chef-powershell/exceptions.rb
326
327
  - lib/chef-powershell/powershell.rb
@@ -339,7 +340,7 @@ metadata:
339
340
  documentation_uri: https://github.com/chef/chef-powershell-shim/chef-powershell/README.md
340
341
  homepage_uri: https://github.com/chef/chef/tree/18-Stable/chef-powershell
341
342
  source_code_uri: https://github.com/chef/chef-powershell-shim/chef-powershell
342
- post_install_message:
343
+ post_install_message:
343
344
  rdoc_options: []
344
345
  require_paths:
345
346
  - lib
@@ -356,7 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
356
357
  version: '0'
357
358
  requirements: []
358
359
  rubygems_version: 3.3.27
359
- signing_key:
360
+ signing_key:
360
361
  specification_version: 4
361
362
  summary: External Chef module for accessing and utilizing PowerShell
362
363
  test_files: []
File without changes