komagata-saimaa 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/saimaa.rb +4 -2
- data/saimaa.gemspec +1 -1
- metadata +1 -1
data/lib/saimaa.rb
CHANGED
@@ -28,7 +28,8 @@ class Saimaa
|
|
28
28
|
|
29
29
|
unless stats.to_i == 0
|
30
30
|
if options.key?(:notify)
|
31
|
-
notify(options[:notify], result)
|
31
|
+
stats, stdout, stderr = notify(options[:notify], result)
|
32
|
+
puts stdout
|
32
33
|
else
|
33
34
|
puts result
|
34
35
|
end
|
@@ -54,7 +55,8 @@ class Saimaa
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def notify(cmd, stdin)
|
57
|
-
systemu(cmd, :stdin => stdin)
|
58
|
+
stats, stdout, stderr = systemu(cmd, :stdin => stdin)
|
59
|
+
[stats, stdout, stderr]
|
58
60
|
end
|
59
61
|
|
60
62
|
def save(project, record)
|
data/saimaa.gemspec
CHANGED