execute 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmd.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e72bc43bdec1031a0d97ab5c2830b4634335c7a9
|
4
|
+
data.tar.gz: 35ea190a0200b589a8f6ae1c2b9336237eb2330d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c02f45853afaf28af1a012b450efba52e74839d4cb04f470d61019f46628281b1f00e1954c0760c5c6aee452e5dc812be1d5642e8b304f3ca280c9b6d9d173a
|
7
|
+
data.tar.gz: 835e4175f64760f1e6c21ad2bbb185af7e51f26660f8a692f38f63bb0600bca4af525ea48bca9058c2b23c4029b8612ee9317c795dbd119fc3bf14536763a351
|
data/lib/cmd.rb
CHANGED
@@ -25,11 +25,11 @@ class CMD < Hash
|
|
25
25
|
windows_command(self, self[:command])
|
26
26
|
end
|
27
27
|
|
28
|
-
def execute_as(username)
|
29
|
-
raise "Unsupported on operating system #{RbConfig::CONFIG["host_os"]}" unless(RbConfig::CONFIG["host_os"].include?("mingw"))
|
30
|
-
cmd = "runas /noprofile /savecred /user:#{username} \"#{self[:command]}\""
|
31
|
-
wait_on_spawned_process(cmd) { windows_command(self, cmd) }
|
32
|
-
end
|
28
|
+
# def execute_as(username)
|
29
|
+
# raise "Unsupported on operating system #{RbConfig::CONFIG["host_os"]}" unless(RbConfig::CONFIG["host_os"].include?("mingw"))
|
30
|
+
# cmd = "runas /noprofile /savecred /user:#{username} \"#{self[:command]}\""
|
31
|
+
# wait_on_spawned_process(cmd) { windows_command(self, cmd) }
|
32
|
+
# end
|
33
33
|
|
34
34
|
private
|
35
35
|
def windows_command(hash, cmd)
|