rest-ftp-daemon 0.242.4 → 0.242.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99420738a087bcca94f2edc12c0db0e7666b6d84
|
4
|
+
data.tar.gz: 01d13c3a2165f7526c9c5ffb688bffe0cdfb65de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccfa3b6c24d2e500f841500944e8e429281d68e8440471c84e530ded779a8d6b339041a9b02c64d9ffcdcceb87f228ea9fe9e51ab9381f218080949b282aae4e
|
7
|
+
data.tar.gz: a17c9f7a94be0f7afb5f29dc84f3c24151e9262070be636bfa200f57a7aca3a47834d28be9b6a548968d6e50ddcbb3360f998f673da7ca2d50c8968168fecd6a
|
data/Gemfile.lock
CHANGED
data/lib/rest-ftp-daemon/job.rb
CHANGED
@@ -19,6 +19,8 @@ module RestFtpDaemon
|
|
19
19
|
attr_reader :error
|
20
20
|
attr_reader :status
|
21
21
|
attr_reader :runs
|
22
|
+
attr_reader :target_method
|
23
|
+
|
22
24
|
|
23
25
|
attr_reader :queued_at
|
24
26
|
attr_reader :updated_at
|
@@ -235,6 +237,10 @@ module RestFtpDaemon
|
|
235
237
|
utf8 @status
|
236
238
|
end
|
237
239
|
|
240
|
+
def target_method_utf8
|
241
|
+
utf8 @target_method
|
242
|
+
end
|
243
|
+
|
238
244
|
def error_utf8
|
239
245
|
utf8 @error
|
240
246
|
end
|
@@ -306,17 +312,20 @@ module RestFtpDaemon
|
|
306
312
|
|
307
313
|
if target_uri.is_a? URI::FTP
|
308
314
|
log_info "Job.prepare target_method FTP"
|
309
|
-
set_info :target_method, :ftp
|
315
|
+
# set_info :target_method, :ftp
|
316
|
+
@target_method = :ftp
|
310
317
|
@remote = RemoteFTP.new target_uri, log_context
|
311
318
|
|
312
319
|
elsif (target_uri.is_a? URI::FTPES) || (target_uri.is_a? URI::FTPS)
|
313
320
|
log_info "Job.prepare target_method FTPES"
|
314
|
-
set_info :target_method, :ftpes
|
321
|
+
# set_info :target_method, :ftpes
|
322
|
+
@target_method = :ftpes
|
315
323
|
@remote = RemoteFTP.new target_uri, log_context, ftpes: true
|
316
324
|
|
317
325
|
elsif target_uri.is_a? URI::SFTP
|
318
326
|
log_info "Job.prepare target_method SFTP"
|
319
|
-
set_info :target_method, :sftp
|
327
|
+
# set_info :target_method, :sftp
|
328
|
+
@target_method = :sftp
|
320
329
|
@remote = RemoteSFTP.new target_uri, log_context
|
321
330
|
|
322
331
|
else
|
@@ -23,7 +23,8 @@
|
|
23
23
|
= Helpers.highlight_tokens job.source
|
24
24
|
|
25
25
|
%td
|
26
|
-
|
26
|
+
=# Helpers.job_method_label (job.get :target_method)
|
27
|
+
= Helpers.job_method_label job.target_method
|
27
28
|
|
28
29
|
%td{title: job.get(:target_url)}
|
29
30
|
= Helpers.highlight_tokens job.target
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-ftp-daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.242.
|
4
|
+
version: 0.242.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno MEDICI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|