chimps 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/chimps +1 -1
- data/lib/chimps/cli.rb +6 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/bin/chimps
CHANGED
data/lib/chimps/cli.rb
CHANGED
@@ -6,17 +6,20 @@ module Chimps
|
|
6
6
|
|
7
7
|
# Execute the Chimps command specified by +argv+.
|
8
8
|
#
|
9
|
+
# Will exit the Ruby process with 0 on success or 1 on an error.
|
10
|
+
#
|
9
11
|
# @param [Array<String>] argv
|
10
12
|
def self.execute! argv
|
11
13
|
begin
|
12
|
-
Runner.new(argv).execute!
|
14
|
+
Runner.new(argv).execute!
|
15
|
+
return 0
|
13
16
|
rescue Chimps::Error => e
|
14
17
|
puts e.message
|
15
|
-
|
18
|
+
return 1
|
16
19
|
rescue => e
|
17
20
|
$stderr.puts("#{e.message} (#{e.class})")
|
18
21
|
$stderr.puts(e.backtrace.join("\n"))
|
19
|
-
|
22
|
+
return 1
|
20
23
|
end
|
21
24
|
end
|
22
25
|
|