web47command 0.0.9 → 0.1.0
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/lib/app/models/command_job.rb +4 -1
- data/lib/web47command/version.rb +1 -1
- 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: 507c57273933c17f93c493bc950163b4434ffc5ac3a0396ee83aabc3c60d9355
|
|
4
|
+
data.tar.gz: 2036dbb4fcb481b60c377c91dd2eaec8b9fbf61628526a063358b1b7bab58b95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 391a11146443d5312c30d595a2e494339f1461854117512a9ebd1cb13b24f32c25f91fff710290265e94b774ecc27c4b31437e5cc3e48953110ca20fee965991
|
|
7
|
+
data.tar.gz: 16b2084ce7f199e310462056e386d69fb559ef227b20e48b1f4b92e169826a9543c24e13e61fba045b30935ddb7febd5f8bc1b1283bc84fa6fc5e37ec49d731a
|
|
@@ -203,7 +203,6 @@ class CommandJob
|
|
|
203
203
|
|
|
204
204
|
alias perform_now perform
|
|
205
205
|
|
|
206
|
-
|
|
207
206
|
#
|
|
208
207
|
# Run the job, handling any failures that might happen
|
|
209
208
|
#
|
|
@@ -243,6 +242,8 @@ class CommandJob
|
|
|
243
242
|
download = URI.parse(file_url).open
|
|
244
243
|
IO.copy_stream(download, file_path)
|
|
245
244
|
add_log "Downloaded file: #{file_url} to #{file_path}"
|
|
245
|
+
rescue StandardError => error
|
|
246
|
+
raise "Unable to download file from #{file_url} to #{file_path}, error: ##{error.message}"
|
|
246
247
|
end
|
|
247
248
|
|
|
248
249
|
#
|
|
@@ -255,6 +256,8 @@ class CommandJob
|
|
|
255
256
|
else
|
|
256
257
|
add_log "File not found: #{from_path}, copy not performed"
|
|
257
258
|
end
|
|
259
|
+
rescue StandardError => error
|
|
260
|
+
raise "Unable to copy file from #{from_path} to #{to_path}, error: ##{error.message}"
|
|
258
261
|
end
|
|
259
262
|
|
|
260
263
|
#
|
data/lib/web47command/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: web47command
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Schroeder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|