Class: Execute
- Inherits:
-
Hash
- Object
- Hash
- Execute
- Defined in:
- lib/execute_windows.rb
Instance Method Summary collapse
Instance Method Details
#execute_as(username) ⇒ Object
6 7 8 9 |
# File 'lib/execute_windows.rb', line 6 def execute_as(username) self[:command] = "runas /noprofile /savecred /user:#{username} \"#{self[:command]}\"" wait_on_spawned_process(self) { self.execute } end |