rest-ftp-daemon 0.231.0 → 0.231.1

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: 66b0655649ee2a3e30ef38f68e1af2d49f1f734f
4
- data.tar.gz: 6eada364e7297144b6d72f1c3b51a3dd109f0566
3
+ metadata.gz: b0b3836e8b886599053c67f24487187570d24f7f
4
+ data.tar.gz: 678679b81b46d4cb3282c3ed28a1f668e82bb127
5
5
  SHA512:
6
- metadata.gz: a7ce9aad2b8f6bcf1cbc9bfa806c184b67ad79740279e66e73e3c219579fa29c24a4333bbd0b9203fa7d4f67a26bf7b9dd83a4fe8e4bf3ed8e52d68864cc242e
7
- data.tar.gz: 460b89ca8c5d7405fefa708c42c1a6c9e2c6c5ad9511d363d6561797d387591b073458f52af8caff1c3546e5b9fde34b8bed00e54a229fa48ae9d9c2a6088d26
6
+ metadata.gz: e5f5dad39c56dae2b4a08b720851d884375ecbf0ba8e43e33fce0f700d629b1831102ec1d20658513559d38491a7debb15b9352e32f2cc0e306d5927c8d17ae7
7
+ data.tar.gz: 724fcc5d35cbd4b6190490b88403b78f56ba6a904a63468991cb8ad9937b62ca21fd9ad7c9b4b07cbab0b1025ff5e81d41cf508be70826395fb5734ed0af02bb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest-ftp-daemon (0.231.0)
4
+ rest-ftp-daemon (0.231.1)
5
5
  double-bag-ftps
6
6
  facter
7
7
  get_process_mem
@@ -1,7 +1,7 @@
1
1
  # Terrific constants
2
2
  APP_NAME = "rest-ftp-daemon"
3
3
  APP_NICK = "rftpd"
4
- APP_VER = "0.231.0"
4
+ APP_VER = "0.231.1"
5
5
 
6
6
  # Provide default config file information
7
7
  APP_LIB = File.expand_path File.dirname(__FILE__)
@@ -41,20 +41,20 @@ module RestFtpDaemon
41
41
  size = @ftp.size target.full
42
42
  log_info "RemoteFTP.present? [#{target.name}]"
43
43
 
44
- rescue Net::FTPPermError
45
- # log_info "RemoteFTP.present? [#{target.name}] NOT_FOUND"
46
- return false
47
- else
48
- return size
44
+ rescue Net::FTPPermError
45
+ # log_info "RemoteFTP.present? [#{target.name}] NOT_FOUND"
46
+ return false
47
+ else
48
+ return size
49
49
  end
50
50
 
51
51
  def remove! target
52
52
  log_info "RemoteFTP.remove! [#{target.name}]"
53
53
  @ftp.delete target.full
54
- rescue Net::FTPPermError
55
- log_info "#{LOG_INDENT}[#{target.name}] file not found"
56
- else
57
- log_info "#{LOG_INDENT}[#{target.name}] removed"
54
+ rescue Net::FTPPermError
55
+ log_info "#{LOG_INDENT}[#{target.name}] file not found"
56
+ else
57
+ log_info "#{LOG_INDENT}[#{target.name}] removed"
58
58
  end
59
59
 
60
60
  def mkdir directory
@@ -46,10 +46,10 @@ module RestFtpDaemon
46
46
  log_info "RemoteSFTP.remove! [#{target.name}]"
47
47
  @sftp.remove target.full
48
48
 
49
- rescue Net::SFTP::StatusException
50
- log_info "#{LOG_INDENT}[#{target.name}] file not found"
51
- else
52
- log_info "#{LOG_INDENT}[#{target.name}] removed"
49
+ rescue Net::SFTP::StatusException
50
+ log_info "#{LOG_INDENT}[#{target.name}] file not found"
51
+ else
52
+ log_info "#{LOG_INDENT}[#{target.name}] removed"
53
53
  end
54
54
 
55
55
  def mkdir directory
@@ -26,7 +26,7 @@ class Settings < Settingslogic
26
26
  Settings["host"] ||= `hostname`.chomp.split(".").first
27
27
 
28
28
  # Init PID file name if missing
29
- Settings["pidfile"] ||= "/tmp/#{APP_NAME}-#{Settings['host']}-#{Settings['port']}.pid"
29
+ Settings["pidfile"] ||= "/tmp/#{APP_NICK}-#{Settings['host']}-#{Settings['port']}.pid"
30
30
 
31
31
  # Init NEWRELIC env
32
32
  if Settings.newrelic_enabled?
@@ -3,17 +3,15 @@
3
3
  - source_count = job.get(:source_count) || 0
4
4
  - source_processed = job.get(:source_processed) || 0
5
5
  - source_current = job.get(:source_current)
6
- - job_presented = entity_representation_for(RestFtpDaemon::API::Entities::JobPresenter, job, {})
7
6
  - bitrate = job.get :transfer_bitrate
8
7
 
9
-
10
8
  - trclass = DASHBOARD_JOB_STYLES[job.status]
11
9
 
12
10
  - unless job.error.nil?
13
11
  - trclass = "warning"
14
12
 
15
13
  %tr{class: trclass.to_s}
16
- %td{title: job_presented.to_json}
14
+ %td
17
15
  %b= job.id
18
16
 
19
17
  %td= job.label
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-ftp-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.231.0
4
+ version: 0.231.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI