jenkins_shell 0.1.0 → 0.1.1
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/bin/jsh +15 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0943cee073c79cdf323acd58d2f975dbfdc1f221d4480dbbce2852279011bb65'
|
|
4
|
+
data.tar.gz: 0bb4a9139df9e0e2c9fddbf3d10f917291df5fc54a553f49ac16e4a4b7a6d904
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94f00093b5803b676c2d0ee9bc294549bfba81409635819f7d9207dae8608164b63dd6073fda6e89e6551ef8de6bb58e8f8f4103ff99a426b3f18d605c471b6f
|
|
7
|
+
data.tar.gz: 3766a511d9dcf85b2ed54ce3144f479a849d51992352bf8c1f9b40f39af445c594548eea43a04c9568781960102457cf3bcb917be66b9d65c58928384ce0ef85
|
data/bin/jsh
CHANGED
|
@@ -142,7 +142,11 @@ def parse(args)
|
|
|
142
142
|
return options
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
begin
|
|
146
|
+
options = parse(ARGV)
|
|
147
|
+
rescue Interrupt
|
|
148
|
+
# Exit gracefully on ^C
|
|
149
|
+
end
|
|
146
150
|
|
|
147
151
|
begin
|
|
148
152
|
passwd = options["password"]
|
|
@@ -166,8 +170,7 @@ rescue SystemExit
|
|
|
166
170
|
# Quite from djinni
|
|
167
171
|
# Exit gracefully
|
|
168
172
|
rescue Interrupt
|
|
169
|
-
# ^C
|
|
170
|
-
# Exit gracefully
|
|
173
|
+
# Exit gracefully on ^C
|
|
171
174
|
rescue Errno::EPIPE
|
|
172
175
|
# Do nothing. This can happen if piping to another program such as
|
|
173
176
|
# less. Usually if less is closed before we're done with STDOUT.
|
|
@@ -175,13 +178,17 @@ rescue JenkinsShell::Error => e
|
|
|
175
178
|
puts e.message
|
|
176
179
|
exit JShExit::EXCEPTION
|
|
177
180
|
rescue Exception => e
|
|
178
|
-
$stderr.puts
|
|
179
|
-
"error
|
|
181
|
+
$stderr.puts [
|
|
182
|
+
"Oops! Looks like an error has occured! If the error",
|
|
183
|
+
"persists, file a bug at:"
|
|
184
|
+
].join(" ").wrap
|
|
180
185
|
$stderr.puts
|
|
181
|
-
$stderr.puts "
|
|
186
|
+
$stderr.puts " https://gitlab.com/mjwhitta/jenkins_shell/issues"
|
|
182
187
|
$stderr.puts
|
|
183
|
-
$stderr.puts
|
|
184
|
-
"
|
|
188
|
+
$stderr.puts [
|
|
189
|
+
"Maybe the message below will help. If not, you can use the",
|
|
190
|
+
"--verbose flag to get a backtrace."
|
|
191
|
+
].join(" ").wrap
|
|
185
192
|
$stderr.puts
|
|
186
193
|
|
|
187
194
|
$stderr.puts e.message.white.on_red
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jenkins_shell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miles Whittaker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06-
|
|
11
|
+
date: 2018-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|