rest-ftp-daemon 1.0.1 → 1.0.2

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: a5e2703802ed5c64bd834898aa2e689a03e7db00
4
- data.tar.gz: bd4dd0c7f81f402269e088c66d25fefa54b44da1
3
+ metadata.gz: 600fd270b56ee28655dc53f4d26ea36a981ce12d
4
+ data.tar.gz: 0cfdedcc42952c16ea033e9bef0038b9c2d7e512
5
5
  SHA512:
6
- metadata.gz: 912d7b5bf50aef05ca5627d18602a5403bfb3fe6ee3ac6e2ff3d7d0da24cf8ed8bcd23a9deaf9f27338563ba8da1e7589632eaa6475c595c0c7b7f42b9fec19e
7
- data.tar.gz: 68e8fdc3ad403729d459a497762032baf56e8634e6b198b7492f5343c897198b358a6f3736a0f7e5ac3cfc6db4d13ab47ad26f5a9bec4ce915376a0d6349ca3d
6
+ metadata.gz: 17ab1d9fd9b525c45960bfce72444d4bd74d1fd5776651509fa0d27049a220405750eb5187a76e77263df79050303ba9cc75249497ac7619bbaca88410beab44
7
+ data.tar.gz: f129e25039898082cea1368f5e29a6b23ce830e7bfd21a41c0939f76fdcf0ea143ccb17cdd3940bca55f3eeb66bd752d02b2b004968574adf38ef82a56134f62
data/Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # Docker headers
2
2
  FROM ruby:2.3.0-slim
3
- MAINTAINER Bruno MEDICI <rest-ftp-daemon@bmconseil.com>
3
+ MAINTAINER Bruno MEDICI <opensource@bmconseil.com>
4
4
 
5
5
 
6
6
  # Environment
@@ -18,7 +18,7 @@ RUN gem install bundler --no-rdoc --no-ri
18
18
  WORKDIR $INSTALL_PATH
19
19
  ADD Gemfile $INSTALL_PATH
20
20
  ADD Gemfile.lock $INSTALL_PATH
21
- ADD rest-ftp-daemon.gemspec $INSTALL_PATH
21
+ ADD *.gemspec $INSTALL_PATH
22
22
  RUN bundle install --system --without="development test" -j4
23
23
 
24
24
 
@@ -29,4 +29,4 @@ ADD . $INSTALL_PATH
29
29
 
30
30
  # App run
31
31
  EXPOSE 3000
32
- CMD ["bin/rest-ftp-daemon", "-p", "3000", "-f", "start"]
32
+ CMD ["bin/*", "-c", "/etc/rftpd.yml", "-f", "start"]
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest-ftp-daemon (1.0.1)
4
+ rest-ftp-daemon (1.1.0)
5
5
  activesupport (~> 4.2)
6
6
  api-auth
7
7
  aws-sdk-resources (~> 2)
8
- bmc-daemon-lib (~> 0.5.2)
8
+ bmc-daemon-lib (~> 0.6.0)
9
9
  double-bag-ftps
10
10
  facter
11
11
  get_process_mem
@@ -38,17 +38,17 @@ GEM
38
38
  public_suffix (~> 2.0, >= 2.0.2)
39
39
  api-auth (2.0.1)
40
40
  ast (2.3.0)
41
- aws-sdk-core (2.6.32)
41
+ aws-sdk-core (2.6.38)
42
42
  aws-sigv4 (~> 1.0)
43
43
  jmespath (~> 1.0)
44
- aws-sdk-resources (2.6.32)
45
- aws-sdk-core (= 2.6.32)
44
+ aws-sdk-resources (2.6.38)
45
+ aws-sdk-core (= 2.6.38)
46
46
  aws-sigv4 (1.0.0)
47
47
  axiom-types (0.1.1)
48
48
  descendants_tracker (~> 0.0.4)
49
49
  ice_nine (~> 0.11.0)
50
50
  thread_safe (~> 0.3, >= 0.3.1)
51
- bmc-daemon-lib (0.5.3)
51
+ bmc-daemon-lib (0.6.0)
52
52
  chamber (~> 2.9.1)
53
53
  builder (3.2.2)
54
54
  chamber (2.9.1)
@@ -113,7 +113,7 @@ GEM
113
113
  mime-types (2.99.3)
114
114
  minitest (5.10.1)
115
115
  multi_json (1.12.1)
116
- multi_xml (0.5.5)
116
+ multi_xml (0.6.0)
117
117
  mustermann (0.4.0)
118
118
  tool (~> 0.2)
119
119
  mustermann-grape (0.4.0)
@@ -122,7 +122,7 @@ GEM
122
122
  net-ssh (>= 2.6.5)
123
123
  net-ssh (3.2.0)
124
124
  netrc (0.11.0)
125
- newrelic_rpm (3.17.1.326)
125
+ newrelic_rpm (3.17.2.327)
126
126
  parser (2.3.3.1)
127
127
  ast (~> 2.2)
128
128
  powerpack (0.1.1)
@@ -135,7 +135,7 @@ GEM
135
135
  rack-accept (0.4.5)
136
136
  rack (>= 0.4)
137
137
  rainbow (2.1.0)
138
- rake (11.3.0)
138
+ rake (12.0.0)
139
139
  representable (3.0.2)
140
140
  declarative (~> 0.0.5)
141
141
  uber (>= 0.0.15, < 0.2.0)
@@ -185,7 +185,7 @@ GEM
185
185
  unf (0.1.4)
186
186
  unf_ext
187
187
  unf_ext (0.0.7.2)
188
- unicode-display_width (1.1.1)
188
+ unicode-display_width (1.1.2)
189
189
  virtus (1.0.5)
190
190
  axiom-types (~> 0.1)
191
191
  coercible (~> 1.0)
@@ -81,16 +81,6 @@ Conf[:pidfile] = cmd_pidfile unless cmd_pidfile.nil?
81
81
  Conf[:pidfile] ||= Conf.generate(:pidfile)
82
82
 
83
83
 
84
- # Validate network configuration
85
- if command == "start"
86
- if !Conf[:port]
87
- abort "ABORTING: Network port is missing"
88
- elsif Launcher.local_port_used? Conf[:port]
89
- abort "ABORTING: Network port #{Conf[:port]} is already in use"
90
- end
91
- end
92
-
93
-
94
84
  # Thin: basic options
95
85
  thin_logfile = Conf.logfile(:thin)
96
86
 
@@ -137,6 +127,17 @@ puts argv.flatten.join(" ")
137
127
  puts
138
128
 
139
129
 
130
+
131
+ # Validate network configuration
132
+ if command == "start"
133
+ if !Conf[:port]
134
+ abort "ABORTING: Network port is missing"
135
+ elsif Launcher.local_port_used? Conf[:port]
136
+ abort "ABORTING: Network port #{Conf[:port]} is already in use"
137
+ end
138
+ end
139
+
140
+
140
141
  # Start Thin with this rackup configuration, changing to app_root first
141
142
  begin
142
143
  Dir.chdir Conf.app_root
@@ -2,12 +2,12 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  # Project version
5
- spec.version = "1.0.1"
5
+ spec.version = "1.0.2"
6
6
 
7
7
  # Project description
8
8
  spec.name = "rest-ftp-daemon"
9
9
  spec.authors = ["Bruno MEDICI"]
10
- spec.email = "rest-ftp-daemon@bmconseil.com"
10
+ spec.email = "rftpd-project@bmconseil.com"
11
11
  spec.description = "This is a pretty simple FTP client daemon, controlled through a RESTful API"
12
12
  spec.summary = "RESTful FTP client daemon"
13
13
  spec.homepage = "http://github.com/bmedici/rest-ftp-daemon"
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "ruby-prof"
33
33
 
34
34
  # Runtime dependencies
35
- spec.add_runtime_dependency "bmc-daemon-lib", "~> 0.5.2"
35
+ spec.add_runtime_dependency "bmc-daemon-lib", "~> 0.6.0"
36
36
  spec.add_runtime_dependency "json", "~> 1.8"
37
37
  spec.add_runtime_dependency "thin", "~> 1.7"
38
38
  spec.add_runtime_dependency "activesupport", "~> 4.2"
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.5.2
117
+ version: 0.6.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.5.2
124
+ version: 0.6.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: json
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -404,7 +404,7 @@ dependencies:
404
404
  version: '0'
405
405
  description: This is a pretty simple FTP client daemon, controlled through a RESTful
406
406
  API
407
- email: rest-ftp-daemon@bmconseil.com
407
+ email: rftpd-project@bmconseil.com
408
408
  executables:
409
409
  - rest-ftp-daemon
410
410
  extensions: []