

However, when I run this via Powershell it runs fine and dandy. + FullyQualifiedErrorId : Modules_ModuleNotFound, + CategoryInfo : ResourceUnavailable: (PSWindowsUpdate:String) [I No valid module file was found in any module directory.At line:1 char:1 Import-Module : The specified module 'PSWindowsUpdate' was not loaded because When I run the above I get the following error: Z:\Desktop>ruby windows_patch.rb I downloaded the PSWindowsUpdate module from " Windows Update PowerShell Module" and copied the files to the following location: %WINDIR%\System32\WindowsPowerShell\v1.0\Modules Release an updated version of this.Description: I am running/executing powershell from a ruby script (.rb) file exec "powershell.exe Import-Module PSWindowsUpdate" Ruby-switch is gone from Ubuntu 14.04 onwards.Fix for selecting the right package name when using versions.Rework the readme, tests, and rake tasks.ruby::dev: A class for configurating ruby development specific things.ruby::gemrc: A class to allow you to configure the global gemrc file.There was a fair amount of under the hood changes to This work adds the ability to manage the gemrc globally, as well as adds in This release merely updates metadata.json so the module can be uninstalled and This may not be available for all distributions.įor a standard install using the latest Rubygems provided by rubygems-update onĬentOS or Redhat use: class Switch: Installs ruby-switch and uses this to set the installed package as the system default. The rubygems package resource will be versioned from $gems_version Update Rubygems to the version defined in $gems_version. If set to true, the module will ensure that the rubygems package is installedīut will use rubygems-update (same as gem update -system but versionable) to Set the version of Rubygems to be installed Note: In Debian and Ubuntu where Ruby version is specified by package name, this parameter will effectively install the latest release of the Ruby version specified with the version parameter. Set this to true and the Ruby module will install new releases if they are updated in the repositories, or if a new repository is added with a newer release. This module manages Ruby and Rubygems on Debian and Redhat based systems.
