execute 0.1.62 → 0.1.63

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c03b6064b5618dfe687c78adc1aafa012c1442ca
4
- data.tar.gz: a6af42c420a9a50f1c35e9e3fbe576aa9cefba23
3
+ metadata.gz: 3e0c68a2ea9b098c87b6fac99fea901adaf089a4
4
+ data.tar.gz: fcac1ab33e9449bfe83e95e5502f6ffd7d8292ac
5
5
  SHA512:
6
- metadata.gz: b2dbd1f768929fb92cdd344bc8d57c733e79a2ad964b30c450116a3458e3f1e6c1356894561dca5cb1fdf988199767d8d34ea67ec1a43ca6e49b81b195add165
7
- data.tar.gz: 306ae3dda19c7ca8bcfc984963918385c443d7808f27b7687428258cbe0b33b234c831a4f406cf7efc2d760919fca4db43b053fe5f229566f54a37afc7445f1f
6
+ metadata.gz: 81a7df676f38711d4a81b1b457b7e09f1f184234cd6f71da601b055b0f9c71aefc3e5b2f0634e157e4c6dcb1d80b450316e792bdfd422b5dd31b66a70cb4f133
7
+ data.tar.gz: 11b36f0367d8d714b65fd008343cfdb54cc2ac12ee569a93ac8a28d69e3601cd911ecd98b6279eb1d8dd805355e6f240eceb391e2b1963f43c311aa2ab75c4b6
@@ -3,7 +3,7 @@ require 'sys/proctable'
3
3
  require 'timeout'
4
4
  require 'benchmark'
5
5
 
6
- class CMD < Hash
6
+ class Execute < Hash
7
7
  private
8
8
  @@default_options = { echo_command: true, echo_output: true, ignore_exit_code: false, debug: false }
9
9
 
@@ -1,8 +1,8 @@
1
1
  require 'open3'
2
2
  require 'sys/proctable'
3
- require_relative ('cmd')
3
+ require_relative 'execute'
4
4
 
5
- class CMD < Hash
5
+ class Execute < Hash
6
6
  def execute_as(username)
7
7
  self[:command] = "runas /noprofile /savecred /user:#{username} \"#{self[:command]}\""
8
8
  wait_on_spawned_process(self) { self.execute }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.62
4
+ version: 0.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,8 +88,8 @@ extra_rdoc_files: []
88
88
  files:
89
89
  - LICENSE
90
90
  - README.md
91
- - lib/cmd.rb
92
- - lib/cmd_windows.rb
91
+ - lib/execute.rb
92
+ - lib/execute_windows.rb
93
93
  homepage: http://rubygems.org/gems/execute
94
94
  licenses:
95
95
  - Apache 2.0