puppetlabs/puppetlabs-dism — pull request #13 by vrutsky (2013-03-13 10:51:55+00:00)
Title: Run /Disable-Feature with /NoRestart option

Running `/Disable-Feature` often exits with same 3010 "error" code ("restart required") as `/Enable-Feature`.
This patch adds `/NoRestart` option to DISM command line and checks exit status code according to `exitcode` `dism` type parameter.

P.S. Obviously code that determines correct dism.exe path should be moved to separate function (`dism_cmd = ...`), but I'm not familiar with Ruby and Puppet internals to do it carefully.