summaryrefslogtreecommitdiff
path: root/lib/mixlib/shellout/unix.rb
diff options
context:
space:
mode:
authorNimishaS <nimisha.sharad@msystechnologies.com>2017-07-07 10:20:46 +0000
committerBryan McLellan <btm@loftninjas.org>2017-07-19 15:29:15 -0400
commitcb07cc92ec9f5bc5f390bbb2553105525cf18869 (patch)
tree139098bf2cbef3bec4b6da4af711682db51154da /lib/mixlib/shellout/unix.rb
parent2d3ca5cd7bfc119b463eaf3b331296c2e370c2de (diff)
downloadmixlib-shellout-cb07cc92ec9f5bc5f390bbb2553105525cf18869.tar.gz
Launch process with elevated token
Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'lib/mixlib/shellout/unix.rb')
-rw-r--r--lib/mixlib/shellout/unix.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb
index 90e63e9..bc0fc69 100644
--- a/lib/mixlib/shellout/unix.rb
+++ b/lib/mixlib/shellout/unix.rb
@@ -27,7 +27,9 @@ module Mixlib
# Option validation that is unix specific
def validate_options(opts)
- # No options to validate, raise exceptions here if needed
+ if opts[:elevated]
+ raise InvalidCommandOption, "Option `elevated` is supported for Powershell commands only"
+ end
end
# Whether we're simulating a login shell