shellter 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shellter/runners/base.rb +2 -0
- data/lib/shellter/runners/windows.rb +8 -2
- data/lib/shellter/version.rb +1 -1
- data/shellter.gemspec +0 -1
- metadata +2 -18
@@ -1,8 +1,14 @@
|
|
1
|
+
require 'popen3'
|
1
2
|
module Shellter
|
2
3
|
module Runners
|
3
4
|
class Windows < Base
|
4
|
-
def run(command,
|
5
|
-
|
5
|
+
def run(command, &block)
|
6
|
+
exit_status = nil
|
7
|
+
Open3.popen3(File.basename(command)) do |stdin, stdout, stderr, wait_thread|
|
8
|
+
yield stdout, stderr, stdin, wait_thread.pid
|
9
|
+
exit_status = wait_thread.value
|
10
|
+
end
|
11
|
+
exit_status
|
6
12
|
end
|
7
13
|
end
|
8
14
|
end
|
data/lib/shellter/version.rb
CHANGED
data/shellter.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shellter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: popen4
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: escape
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|