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: d53f8c7bc21a0fd6f23831d7bcc4241a6b6e39dd
4
- data.tar.gz: 372c142eb3583d4d42ec36ccc8c28e50ca4701a0
3
+ metadata.gz: 99420738a087bcca94f2edc12c0db0e7666b6d84
4
+ data.tar.gz: 01d13c3a2165f7526c9c5ffb688bffe0cdfb65de
5
5
  SHA512:
6
- metadata.gz: 20ed6e6d2eac731ef82d40a11aa66cbe7dcdd4aa6ed1a6a271ca919046f8e196897345a5f88d2b892c0a803d067ac21576671ce7d981c57bf12daf5bb573eef5
7
- data.tar.gz: 91b60bd6c4e1fdcdd992b6e655ab9fd04729bbcb71e054ccde8e1b1e7602075b2a2b7566ad49f90d626cf7e6ed622e1ecd0b1a5577f4de8e186c3dbe52ce48bf
6
+ metadata.gz: ccfa3b6c24d2e500f841500944e8e429281d68e8440471c84e530ded779a8d6b339041a9b02c64d9ffcdcceb87f228ea9fe9e51ab9381f218080949b282aae4e
7
+ data.tar.gz: a17c9f7a94be0f7afb5f29dc84f3c24151e9262070be636bfa200f57a7aca3a47834d28be9b6a548968d6e50ddcbb3360f998f673da7ca2d50c8968168fecd6a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest-ftp-daemon (0.242.4)
4
+ rest-ftp-daemon (0.242.5)
5
5
  double-bag-ftps
6
6
  facter
7
7
  get_process_mem
@@ -17,6 +17,8 @@ module RestFtpDaemon
17
17
  # expose :error
18
18
  expose :error_utf8, :as => :error
19
19
  expose :status_utf8, :as => :status
20
+ expose :target_method_utf8, :as => :target_method
21
+
20
22
  expose :queued_at
21
23
  expose :updated_at
22
24
  expose :started_at
@@ -1,7 +1,7 @@
1
1
  # Terrific constants
2
2
  APP_NAME = "rest-ftp-daemon"
3
3
  APP_NICK = "rftpd"
4
- APP_VER = "0.242.4"
4
+ APP_VER = "0.242.5"
5
5
 
6
6
  # Provide default config file information
7
7
  APP_LIB = File.expand_path File.dirname(__FILE__)
@@ -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
- = Helpers.job_method_label (job.get :target_method)
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
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-10-28 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler