Method: Chef::Provider::Package::Cab#dism_command
- Defined in:
- lib/chef/provider/package/cab.rb
#dism_command(command) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/chef/provider/package/cab.rb', line 84 def dism_command(command) with_os_architecture(nil) do result = shell_out("dism.exe /Online /English #{command} /NoRestart", timeout: new_resource.timeout) if result.exitstatus == -2146498530 raise Chef::Exceptions::Package, "The specified package is not applicable to this image." if result.stdout.include?("0x800f081e") result.error! end result end end |