raka 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/raka +8 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e4ea9a3a09591f63ba147a92114c3100a92a673235ec632aad1b5aef56bcc8d
|
4
|
+
data.tar.gz: 53c6e86ef4b40bfa8b084c3158f288bdafdec946807ef145fad5cd2fa28df7d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcd2382221bdeace9ceee90d944ef606c396f4b2ea010533f467f5427715ed1fc05bef50c4c8902844ae386357a6fc1d4d86425ae5a2f2399d8e372cf4a2283
|
7
|
+
data.tar.gz: 50a58b7250e1f191134d13f07ebe72793d94685cc136c77b19fef8909f22f923f113e68edfb7eadccb34ec4cc4abe153cac0b89b45a505aadd57a1118fac9d10
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.7
|
data/bin/raka
CHANGED
@@ -62,22 +62,18 @@ cmd = ''
|
|
62
62
|
opt_str = "-f #{entry}"
|
63
63
|
opt_str += " -m -j #{options[:jobs]}" if options.key?(:jobs)
|
64
64
|
cmd += "#{env}rake #{opt_str} #{extra_args} #{targets}"
|
65
|
+
dry_cmd = cmd + ' --dry-run'
|
66
|
+
_, dry_msg, status = Open3.capture3(dry_cmd)
|
67
|
+
exit(status) if status != 0
|
68
|
+
unless (dry_msg.lines.first.chomp =~ /^.*\(.*not_needed.*\)$/).nil?
|
69
|
+
puts 'All targets are up to date'
|
70
|
+
exit(0)
|
71
|
+
end
|
65
72
|
puts cmd
|
66
|
-
output = []
|
67
|
-
ro, out = IO.pipe
|
68
|
-
re, err = IO.pipe
|
69
73
|
pid = fork do
|
70
|
-
status = system(cmd
|
74
|
+
status = system(cmd)
|
71
75
|
puts 'Error: rake returns the following information:' unless status
|
72
76
|
exit($CHILD_STATUS.exitstatus)
|
73
77
|
end
|
74
|
-
out.close
|
75
|
-
err.close
|
76
|
-
ro.each_line do |l|
|
77
|
-
puts l
|
78
|
-
output << l.chomp
|
79
|
-
end
|
80
|
-
re.each_line { |l| puts l; }
|
81
78
|
|
82
79
|
Process.wait(pid)
|
83
|
-
puts 'All targets are up to date' if output.empty? && $CHILD_STATUS.exitstatus == 0
|