execute 0.1.12 → 0.1.13
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 +1 -1
- 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: bb5849ed77968b2bff03b404912ac816b7cdba0a
|
4
|
+
data.tar.gz: f9a8dddcc9b8c4c8dd9646dfd52a3d6c62eee5c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5a2e9c471de81a107e1bdd57a6caf58259453c21a39b29d96ce48fb5209f2f7c2c722e2eb6aea3a77978fd12d7080e3a3766e89a337397903188896f73a2cad
|
7
|
+
data.tar.gz: 9377cd1d96227b66be3febd5cc78a19e25800816aa933060140174121adfd8695908a8e0967400434b8558574785bba16bcd4751a94f3e7f1578e2b2f842f6d9
|
data/lib/cmd.rb
CHANGED
@@ -26,7 +26,7 @@ class CMD < Hash
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def execute_as(username)
|
29
|
-
raise "
|
29
|
+
raise "Unsupported on operating system #{RbConfig::CONFIG["host_os"]}" unless(RbConfig::CONFIG["host_os"].include?("mingw"))
|
30
30
|
cmd = "runas /noprofile /savecred /user:#{username} \"#{self[:command]}\""
|
31
31
|
wait_on_spawned_process(cmd) { windows_command(self, cmd) }
|
32
32
|
end
|