File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,17 @@ hg 1.1.2
49
49
If you are using CVS instead of CVSNT, you can potentially try creating
50
50
a shell alias or symlink mapping 'cvsnt' to 'cvs'.
51
51
52
+ Ohloh SCM uses [ posix-spawn] ( https://github.com/rtomayko/posix-spawn ) to
53
+ execute commands so ensure * posix-spawn* gem is installed
54
+
55
+ `` gem install posix-spawn ``
56
+
57
+
52
58
## Usage with Bundler
53
59
54
60
```
55
61
gem 'ohloh_scm', git: 'https://github.com/blackducksw/ohloh_scm/', require: 'scm'
62
+ gem 'posix-spawn'
56
63
```
57
64
## Running
58
65
Original file line number Diff line number Diff line change 1
1
require 'rubygems'
2
2
require 'stringio'
3
- require 'open3 '
3
+ require 'posix/spawn '
4
4
5
5
class Shellout
6
6
@@ -9,9 +9,9 @@ def self.relay src, dst
9
9
end
10
10
11
11
def self . execute ( cmd )
12
- out , err , exit_status = Open3 . capture3 ( cmd )
12
+ posix_spawn = POSIX :: Spawn :: Child . new ( cmd )
13
13
14
- return exit_status , out , err
14
+ return posix_spawn . status , posix_spawn . out , posix_spawn . err
15
15
end
16
16
17
17
def run ( cmd )
You can’t perform that action at this time.
0 commit comments