execute 0.1.14 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cmd.rb +5 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4d4c888689d37135cedba9dbf61a2963f97066d
4
- data.tar.gz: 196a5620ff0582ea455925c8aae841ca0ce29172
3
+ metadata.gz: e72bc43bdec1031a0d97ab5c2830b4634335c7a9
4
+ data.tar.gz: 35ea190a0200b589a8f6ae1c2b9336237eb2330d
5
5
  SHA512:
6
- metadata.gz: c171bfa381441135ab4e6aa87a3ca0954a97d0e60bd35ec9af359be7a821fdcb09cab20b8eb6b17ccf338c29adeb1a80449b3ddb28fa684408fde3ade6ce20b0
7
- data.tar.gz: 9e59c7df1084d4ebb4d4974eed14e5bafc2727212fda6ce7b91491bcf20229998746ecb322f6469814829a0e41d29746bef6a6a5811572616ff31ddc7d45866c
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall