uricp 0.0.17 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +15 -13
- data/Jenkinsfile +86 -56
- data/Rakefile +5 -0
- data/almalinux8/Dockerfile +26 -0
- data/bin/uricp +26 -11
- data/bionic/Dockerfile +2 -1
- data/centos7/Dockerfile +16 -11
- data/cucumber.yml +1 -0
- data/features/check_uri_path.feature +14 -0
- data/features/rbd_access.feature +218 -0
- data/features/step_definitions/rbd_steps.rb +8 -0
- data/features/step_definitions/uricp_steps.rb +8 -4
- data/focal/Dockerfile +28 -0
- data/lib/uricp/strategy/cache_common.rb +19 -1
- data/lib/uricp/strategy/cached_get.rb +8 -5
- data/lib/uricp/strategy/common.rb +54 -1
- data/lib/uricp/strategy/local_convert.rb +1 -1
- data/lib/uricp/strategy/piped_cache.rb +5 -4
- data/lib/uricp/strategy/piped_rbd_get.rb +8 -24
- data/lib/uricp/strategy/rbd_cache_base_snap.rb +27 -0
- data/lib/uricp/strategy/rbd_cache_check.rb +42 -0
- data/lib/uricp/strategy/rbd_cache_clone.rb +40 -0
- data/lib/uricp/strategy/rbd_cache_upload.rb +40 -0
- data/lib/uricp/strategy/rbd_cached_get.rb +36 -0
- data/lib/uricp/strategy/rbd_cached_put.rb +32 -0
- data/lib/uricp/strategy/{rbd_remote_put.rb → rbd_put.rb} +7 -5
- data/lib/uricp/strategy/rbd_snap.rb +57 -0
- data/lib/uricp/strategy/rbd_sweeper.rb +2 -1
- data/lib/uricp/uri_strategy.rb +8 -1
- data/lib/uricp/version.rb +4 -2
- data/lib/uricp.rb +26 -19
- data/uricp.gemspec +3 -2
- data/xenial/Dockerfile +2 -1
- metadata +36 -8
- data/trusty/Dockerfile +0 -20
data/lib/uricp.rb
CHANGED
@@ -1,32 +1,39 @@
|
|
1
|
-
|
1
|
+
module Uricp
|
2
|
+
UnsupportedURLtype = Class.new(ArgumentError)
|
3
|
+
MissingCache = Class.new(ArgumentError)
|
4
|
+
UnsupportedConversion = Class.new(ArgumentError)
|
5
|
+
ConversionRequired = Class.new(ArgumentError)
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'uricp/curl_primitives'
|
9
|
+
require 'uricp/orbit_auth'
|
3
10
|
require 'uricp/strategy/common'
|
4
11
|
require 'uricp/strategy/cache_common'
|
12
|
+
require 'uricp/strategy/cached_get'
|
13
|
+
require 'uricp/strategy/cleaner'
|
5
14
|
require 'uricp/strategy/local_convert'
|
6
15
|
require 'uricp/strategy/local_link'
|
7
16
|
require 'uricp/strategy/piped_cache'
|
8
17
|
require 'uricp/strategy/piped_cache_convert'
|
9
|
-
require 'uricp/strategy/piped_local_get'
|
10
|
-
require 'uricp/strategy/piped_rbd_get'
|
11
|
-
require 'uricp/strategy/piped_local_put'
|
12
|
-
require 'uricp/strategy/piped_remote_get'
|
13
18
|
require 'uricp/strategy/piped_compress'
|
14
19
|
require 'uricp/strategy/piped_decompress'
|
15
|
-
require 'uricp/strategy/piped_local_decompress'
|
16
20
|
require 'uricp/strategy/piped_local_compress'
|
17
|
-
require 'uricp/strategy/
|
18
|
-
require 'uricp/strategy/
|
19
|
-
require 'uricp/strategy/
|
20
|
-
require 'uricp/strategy/
|
21
|
+
require 'uricp/strategy/piped_local_decompress'
|
22
|
+
require 'uricp/strategy/piped_local_get'
|
23
|
+
require 'uricp/strategy/piped_local_put'
|
24
|
+
require 'uricp/strategy/piped_rbd_get'
|
25
|
+
require 'uricp/strategy/piped_remote_get'
|
26
|
+
require 'uricp/strategy/rbd_cache_base_snap'
|
27
|
+
require 'uricp/strategy/rbd_cache_check'
|
28
|
+
require 'uricp/strategy/rbd_cache_clone'
|
29
|
+
require 'uricp/strategy/rbd_cached_get'
|
30
|
+
require 'uricp/strategy/rbd_cached_put'
|
31
|
+
require 'uricp/strategy/rbd_cache_upload'
|
32
|
+
require 'uricp/strategy/rbd_put'
|
33
|
+
require 'uricp/strategy/rbd_snap'
|
21
34
|
require 'uricp/strategy/rbd_sweeper'
|
35
|
+
require 'uricp/strategy/remote_put'
|
36
|
+
require 'uricp/strategy/segmented_remote_put'
|
22
37
|
require 'uricp/strategy/sweeper'
|
23
|
-
require 'uricp/strategy/cleaner'
|
24
38
|
require 'uricp/uri_strategy'
|
25
|
-
require 'uricp/
|
26
|
-
|
27
|
-
module Uricp
|
28
|
-
UnsupportedURLtype = Class.new(ArgumentError)
|
29
|
-
MissingCache = Class.new(ArgumentError)
|
30
|
-
UnsupportedConversion = Class.new(ArgumentError)
|
31
|
-
ConversionRequired = Class.new(ArgumentError)
|
32
|
-
end
|
39
|
+
require 'uricp/version'
|
data/uricp.gemspec
CHANGED
@@ -22,8 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency('rdoc', '~> 4.2.0')
|
23
23
|
spec.add_development_dependency('aruba', '~> 0.6.0')
|
24
24
|
spec.add_development_dependency('cucumber', '~> 1.3')
|
25
|
-
spec.add_development_dependency('rake', '~>
|
26
|
-
spec.add_dependency('
|
25
|
+
spec.add_development_dependency('rake', '~> 12.3')
|
26
|
+
spec.add_dependency('childprocess', '~> 1.0')
|
27
|
+
spec.add_dependency('methadone', '~> 2.0.2')
|
27
28
|
spec.add_dependency('open4', '~> 1.3.0')
|
28
29
|
spec.add_dependency('filesize', '= 0.0.2')
|
29
30
|
spec.add_dependency('sendfile', '~> 1.2.0')
|
data/xenial/Dockerfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
FROM ubuntu:xenial
|
2
2
|
MAINTAINER support@brightbox.co.uk
|
3
3
|
|
4
|
+
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
5
|
+
|
4
6
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq software-properties-common
|
5
7
|
|
6
8
|
#RUN apt-add-repository ppa:brightbox/ruby-ng
|
@@ -16,5 +18,4 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
|
|
16
18
|
python-swiftclient \
|
17
19
|
ruby-bundler
|
18
20
|
|
19
|
-
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
20
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uricp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,28 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '12.3'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '12.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: childprocess
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: methadone
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.0.
|
103
|
+
version: 2.0.2
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.0.
|
110
|
+
version: 2.0.2
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: open4
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,6 +181,7 @@ files:
|
|
167
181
|
- LICENSE.txt
|
168
182
|
- README.md
|
169
183
|
- Rakefile
|
184
|
+
- almalinux8/Dockerfile
|
170
185
|
- bin/segment_upload
|
171
186
|
- bin/uricp
|
172
187
|
- bionic/Dockerfile
|
@@ -174,15 +189,19 @@ files:
|
|
174
189
|
- cucumber.yml
|
175
190
|
- features/auth_download.feature
|
176
191
|
- features/cacheable_from_uri.feature
|
192
|
+
- features/check_uri_path.feature
|
177
193
|
- features/documented_options.feature
|
178
194
|
- features/qcow2_auth_download.feature
|
195
|
+
- features/rbd_access.feature
|
179
196
|
- features/remote_upload.feature
|
180
197
|
- features/segmented_upload.feature
|
181
198
|
- features/segmented_upload_options.feature
|
182
199
|
- features/step_definitions/orbit_steps.rb
|
200
|
+
- features/step_definitions/rbd_steps.rb
|
183
201
|
- features/step_definitions/uricp_steps.rb
|
184
202
|
- features/support/env.rb
|
185
203
|
- features/userid_download.feature
|
204
|
+
- focal/Dockerfile
|
186
205
|
- lib/segment_upload.rb
|
187
206
|
- lib/uricp.rb
|
188
207
|
- lib/uricp/curl_primitives.rb
|
@@ -204,14 +223,20 @@ files:
|
|
204
223
|
- lib/uricp/strategy/piped_local_put.rb
|
205
224
|
- lib/uricp/strategy/piped_rbd_get.rb
|
206
225
|
- lib/uricp/strategy/piped_remote_get.rb
|
207
|
-
- lib/uricp/strategy/
|
226
|
+
- lib/uricp/strategy/rbd_cache_base_snap.rb
|
227
|
+
- lib/uricp/strategy/rbd_cache_check.rb
|
228
|
+
- lib/uricp/strategy/rbd_cache_clone.rb
|
229
|
+
- lib/uricp/strategy/rbd_cache_upload.rb
|
230
|
+
- lib/uricp/strategy/rbd_cached_get.rb
|
231
|
+
- lib/uricp/strategy/rbd_cached_put.rb
|
232
|
+
- lib/uricp/strategy/rbd_put.rb
|
233
|
+
- lib/uricp/strategy/rbd_snap.rb
|
208
234
|
- lib/uricp/strategy/rbd_sweeper.rb
|
209
235
|
- lib/uricp/strategy/remote_put.rb
|
210
236
|
- lib/uricp/strategy/segmented_remote_put.rb
|
211
237
|
- lib/uricp/strategy/sweeper.rb
|
212
238
|
- lib/uricp/uri_strategy.rb
|
213
239
|
- lib/uricp/version.rb
|
214
|
-
- trusty/Dockerfile
|
215
240
|
- uricp.gemspec
|
216
241
|
- xenial/Dockerfile
|
217
242
|
homepage: ''
|
@@ -240,12 +265,15 @@ summary: Copy one URL to another with optional cacheing
|
|
240
265
|
test_files:
|
241
266
|
- features/auth_download.feature
|
242
267
|
- features/cacheable_from_uri.feature
|
268
|
+
- features/check_uri_path.feature
|
243
269
|
- features/documented_options.feature
|
244
270
|
- features/qcow2_auth_download.feature
|
271
|
+
- features/rbd_access.feature
|
245
272
|
- features/remote_upload.feature
|
246
273
|
- features/segmented_upload.feature
|
247
274
|
- features/segmented_upload_options.feature
|
248
275
|
- features/step_definitions/orbit_steps.rb
|
276
|
+
- features/step_definitions/rbd_steps.rb
|
249
277
|
- features/step_definitions/uricp_steps.rb
|
250
278
|
- features/support/env.rb
|
251
279
|
- features/userid_download.feature
|
data/trusty/Dockerfile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
FROM ubuntu:trusty
|
2
|
-
MAINTAINER support@brightbox.co.uk
|
3
|
-
|
4
|
-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq software-properties-common
|
5
|
-
|
6
|
-
RUN apt-add-repository ppa:brightbox/ruby-ng
|
7
|
-
|
8
|
-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
|
9
|
-
build-essential \
|
10
|
-
git \
|
11
|
-
qemu-utils \
|
12
|
-
liblz4-tool \
|
13
|
-
curl \
|
14
|
-
ruby1.9.3 \
|
15
|
-
ruby-dev \
|
16
|
-
python-swiftclient \
|
17
|
-
ruby-bundler
|
18
|
-
|
19
|
-
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
20
|
-
|