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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0b3836e8b886599053c67f24487187570d24f7f
|
4
|
+
data.tar.gz: 678679b81b46d4cb3282c3ed28a1f668e82bb127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f5dad39c56dae2b4a08b720851d884375ecbf0ba8e43e33fce0f700d629b1831102ec1d20658513559d38491a7debb15b9352e32f2cc0e306d5927c8d17ae7
|
7
|
+
data.tar.gz: 724fcc5d35cbd4b6190490b88403b78f56ba6a904a63468991cb8ad9937b62ca21fd9ad7c9b4b07cbab0b1025ff5e81d41cf508be70826395fb5734ed0af02bb
|
data/Gemfile.lock
CHANGED
@@ -41,20 +41,20 @@ module RestFtpDaemon
|
|
41
41
|
size = @ftp.size target.full
|
42
42
|
log_info "RemoteFTP.present? [#{target.name}]"
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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/#{
|
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
|
14
|
+
%td
|
17
15
|
%b= job.id
|
18
16
|
|
19
17
|
%td= job.label
|