lucie-cmd 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lucie-cmd/commands.rb +14 -18
- data/lucie-cmd.gemspec +0 -1
- data/test/functional/cd_test.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4958971b4d46b874b201b7c3f7dc71b19332a2ec
|
4
|
+
data.tar.gz: 8d79bf77eb1b5e7dfa1d2490223eff9df1293582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d834f7797e6c19d7bce612ec3e3d159b80f506b7192df54da01faa9d5de6a661e5854f0713e3ae5a1100e2e8afbdb5700784bd223af99d79d84da9601e65948f
|
7
|
+
data.tar.gz: 673665098f3b5d9b2f3e87baf7586d92f495bff3c1f4f57ea486847bf9fbbe6b68cb73ae17a80041c10daedfee812e6f5424dea6170342279974eef4fa590f76
|
data/lib/lucie-cmd/commands.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'open3'
|
2
2
|
|
3
3
|
module Lucie
|
4
4
|
module Commands
|
@@ -80,24 +80,20 @@ module Lucie
|
|
80
80
|
puts "$ #{command}"
|
81
81
|
end
|
82
82
|
|
83
|
-
@
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
@output << new_content
|
92
|
-
end
|
93
|
-
if !stderr.eof
|
94
|
-
new_content = stderr.read
|
95
|
-
if @opts.include? :live_output
|
96
|
-
@stderr.print new_content
|
97
|
-
end
|
98
|
-
@output << new_content
|
83
|
+
@output = ""
|
84
|
+
|
85
|
+
Open3.popen3("cd \"#{pwd}\" && #{command}") {|stdin, stdout, stderr, wait_thr|
|
86
|
+
@pid = wait_thr.pid # pid of the started process.
|
87
|
+
|
88
|
+
if @opts.include? :live_output
|
89
|
+
puts stdout.read if !stdout.eof
|
90
|
+
@stderr << stderr.read if !stderr.eof
|
99
91
|
end
|
100
|
-
|
92
|
+
@output << stdout.read if !stdout.eof
|
93
|
+
@output << stderr.read if !stderr.eof
|
94
|
+
|
95
|
+
@status = wait_thr.value # Process::Status object returned.
|
96
|
+
}
|
101
97
|
end
|
102
98
|
|
103
99
|
def output
|
data/lucie-cmd.gemspec
CHANGED
data/test/functional/cd_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucie-cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nucc
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: open4
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.3.0
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.3.0
|
83
69
|
description: Shell command for Lucie command line utility framework
|
84
70
|
email:
|
85
71
|
- nucc@bteam.hu
|