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.
- checksums.yaml +4 -4
- data/Rakefile +3 -3
- data/bin/ruby_bin_folder/AMD64/Chef.PowerShell.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/Chef.Powershell.Wrapper.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/Ijwhost.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/Newtonsoft.Json.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/host/fxr/8.0.0/hostfxr.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Chef.Powershell.Core.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Chef.Powershell.Core.pdb +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Ijwhost.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.CSharp.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.NETCore.App.deps.json +248 -249
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.PowerShell.CoreCLR.Eventing.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.VisualBasic.Core.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.VisualBasic.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.Win32.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Microsoft.Win32.Registry.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/Newtonsoft.Json.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.AppContext.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Buffers.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.Concurrent.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.Immutable.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.NonGeneric.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.Specialized.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Collections.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.Annotations.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.DataAnnotations.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.EventBasedAsync.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.TypeConverter.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ComponentModel.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Configuration.ConfigurationManager.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Configuration.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Console.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Core.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Data.Common.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Data.DataSetExtensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Data.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Contracts.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Debug.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.DiagnosticSource.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.EventLog.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.FileVersionInfo.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.PerformanceCounter.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Process.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.StackTrace.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.TextWriterTraceListener.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Tools.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.TraceSource.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Diagnostics.Tracing.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Drawing.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Drawing.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Dynamic.Runtime.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Formats.Asn1.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Formats.Tar.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Globalization.Calendars.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Globalization.Extensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Globalization.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.Brotli.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.FileSystem.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.Native.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.ZipFile.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Compression.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.AccessControl.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.DriveInfo.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.Watcher.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.FileSystem.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.IsolatedStorage.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.MemoryMappedFiles.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Pipes.AccessControl.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.Pipes.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.UnmanagedMemoryStream.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.IO.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.Expressions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.Parallel.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.Queryable.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Linq.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Management.Automation.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Memory.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Http.Json.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Http.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.HttpListener.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Mail.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.NameResolution.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.NetworkInformation.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Ping.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Quic.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Requests.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Security.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.ServicePoint.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.Sockets.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebClient.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebHeaderCollection.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebProxy.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebSockets.Client.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.WebSockets.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Net.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Numerics.Vectors.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Numerics.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ObjectModel.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.CoreLib.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.DataContractSerialization.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.Uri.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.Xml.Linq.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Private.Xml.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.DispatchProxy.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Emit.ILGeneration.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Emit.Lightweight.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Emit.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Extensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Metadata.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.TypeExtensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Reflection.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Resources.Reader.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Resources.ResourceManager.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Resources.Writer.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.CompilerServices.VisualC.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Extensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Handles.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.InteropServices.JavaScript.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.InteropServices.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Intrinsics.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Loader.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Numerics.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Formatters.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Json.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.Xml.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.Serialization.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Runtime.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.AccessControl.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Claims.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Algorithms.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Cng.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Csp.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Encoding.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.OpenSsl.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.Primitives.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.ProtectedData.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.X509Certificates.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Cryptography.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Principal.Windows.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.Principal.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.SecureString.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Security.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ServiceModel.Web.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ServiceProcess.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encoding.CodePages.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encoding.Extensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encoding.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Encodings.Web.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.Json.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Text.RegularExpressions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Channels.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Overlapped.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.Dataflow.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.Extensions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.Parallel.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Tasks.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Thread.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.ThreadPool.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.Timer.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Threading.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Transactions.Local.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Transactions.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.ValueTuple.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Web.HttpUtility.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Web.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Windows.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.Linq.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.ReaderWriter.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.Serialization.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XDocument.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XPath.XDocument.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XPath.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XmlDocument.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.XmlSerializer.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.Xml.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/System.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/WindowsBase.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/clretwrc.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/clrgc.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/clrjit.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/coreclr.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/createdump.exe +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/getfilesiginforedist.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/getfilesiginforedistwrapper.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/hostfxr.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/hostpolicy.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordaccore_amd64_amd64_8.0.824.36612.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscordbi.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscorlib.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/mscorrc.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/8.0.0/netstandard.dll +0 -0
- data/chef-powershell.gemspec +6 -3
- data/ext/chef-powershell/extconf.rb +188 -0
- data/lib/chef-powershell/exceptions.rb +1 -1
- data/lib/chef-powershell/powershell.rb +5 -5
- data/lib/chef-powershell/powershell_exec.rb +19 -15
- data/lib/chef-powershell/pwsh.rb +15 -18
- data/lib/chef-powershell/version.rb +1 -1
- data/lib/chef-powershell.rb +1 -1
- data/spec/unit/powershell_exec_spec.rb +6 -2
- metadata +10 -9
- data/bin/ruby_bin_folder/AMD64/.keep +0 -0
- 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
|
|
@@ -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
|
|
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(
|
|
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.
|
|
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
|
-
|
|
178
|
+
PowerMod.set_ps_dll(@powershell_dll)
|
|
179
179
|
PowerMod.set_ps_timeout(timeout)
|
|
180
180
|
|
|
181
181
|
PowerMod.set_ps_command(script)
|
|
182
|
-
|
|
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 "
|
|
19
|
-
require_relative "
|
|
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
|
-
|
|
106
|
-
if
|
|
107
|
-
ENV["
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
data/lib/chef-powershell/pwsh.rb
CHANGED
|
@@ -19,18 +19,23 @@ class ChefPowerShell
|
|
|
19
19
|
class Pwsh < ChefPowerShell::PowerShell
|
|
20
20
|
|
|
21
21
|
def self.resolve_core_wrapper_dll
|
|
22
|
-
|
|
22
|
+
gem_spec = Gem.loaded_specs["chef-powershell"]
|
|
23
23
|
arch = ENV["PROCESSOR_ARCHITECTURE"] || "AMD64"
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
data/lib/chef-powershell.rb
CHANGED
|
@@ -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
|
-
|
|
27
|
-
|
|
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.
|
|
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-
|
|
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.
|
|
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
|