diff options
Diffstat (limited to 'lib/mixlib/shellout/windows.rb')
-rw-r--r-- | lib/mixlib/shellout/windows.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb index 5fe9667..3251f66 100644 --- a/lib/mixlib/shellout/windows.rb +++ b/lib/mixlib/shellout/windows.rb @@ -35,6 +35,15 @@ module Mixlib TIME_SLICE = 0.05 + # Option validation that is windows specific + def validate_options(opts) + if opts["user"] + unless opts["password"] && opts["domain"] + raise InvalidCommandOption, "You must supply both a username and password when supplying a user in windows" + end + end + end + #-- # Missing lots of features from the UNIX version, such as # uid, etc. |