jenkins_shell 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/jsh +15 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc19a7e7ac0de4a5dac9e02f534850b0229fdf1e064983d666f25c9b50d6c263
4
- data.tar.gz: ef12b53b7d2a6bc2fbecffd3fc3a9d394458ebe2861c9f30d775c8be3f14f8c9
3
+ metadata.gz: '0943cee073c79cdf323acd58d2f975dbfdc1f221d4480dbbce2852279011bb65'
4
+ data.tar.gz: 0bb4a9139df9e0e2c9fddbf3d10f917291df5fc54a553f49ac16e4a4b7a6d904
5
5
  SHA512:
6
- metadata.gz: c1a25c31edc94c4569e53853951dc2b2c7d4bcb647ef1e20965cf727b7e7a182202e40c0b0c11b9d31ebfdb474654afdef2703b56e957b6a5515bf9f3ae2fb58
7
- data.tar.gz: e8e141572b92e44d76c73474e44829f25518f15f7bf32571c543db519e1e7acb2ecd2649fb17479b301de6d8c1bdb22c196217dd83905f072408bd0ab54d410c
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
- options = parse(ARGV)
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 "Oops! Looks like an error has occured! If the " \
179
- "error persists, file a bug at:".wrap
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 " https://gitlab.com/mjwhitta/todo/issues"
186
+ $stderr.puts " https://gitlab.com/mjwhitta/jenkins_shell/issues"
182
187
  $stderr.puts
183
- $stderr.puts "Maybe the message below will help. If not, you " \
184
- "can use the --verbose flag to get a backtrace.".wrap
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2018-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake