uricp 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -4
- data/features/rbd_access.feature +1 -1
- data/lib/uricp/strategy/rbd_cache_upload.rb +3 -6
- data/lib/uricp/strategy/rbd_put.rb +3 -6
- data/lib/uricp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 937fe351785726ef27786e889bed4d5a1a9f8cb37058916fdb4613c8df528855
|
|
4
|
+
data.tar.gz: c895d696bcf2613018934f84907f43806fbbd98fce378bbe8663546e986a6608
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84b2b32f85a7eb23833501689a14b3776b605e431ff3c5035df641e9f3dbfea17ce9a26f521cb1815a91abe67083f96115f04a928431a7d196093b3387e67c4e
|
|
7
|
+
data.tar.gz: 9ec10d1d48cd8452c32c2d1f25e196207921f282f323c8383e6ab70cb1b5b3d8beb889421bca912e7c15ef3670135d4ccde0da476ddf96a1d0031c4a9d848c4f
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
uricp (0.0.
|
|
4
|
+
uricp (0.0.26)
|
|
5
5
|
childprocess (~> 1.0)
|
|
6
6
|
filesize (= 0.0.2)
|
|
7
7
|
methadone (~> 2.0.2)
|
|
@@ -54,8 +54,5 @@ DEPENDENCIES
|
|
|
54
54
|
rdoc (~> 4.2.0)
|
|
55
55
|
uricp!
|
|
56
56
|
|
|
57
|
-
RUBY VERSION
|
|
58
|
-
ruby 2.7.0p0
|
|
59
|
-
|
|
60
57
|
BUNDLED WITH
|
|
61
58
|
1.17.3
|
data/features/rbd_access.feature
CHANGED
|
@@ -41,7 +41,7 @@ Feature: Manipulate file images in ceph
|
|
|
41
41
|
When I successfully run `uricp --dry-run --target-format=raw --cache=/tmp/uricp http://orbit.brightbox.com/v1/acc-tqs4c/downloads/freedos.qcow2 rbd:///servers/srv-testy`
|
|
42
42
|
And the output should contain:
|
|
43
43
|
"""
|
|
44
|
-
rbd import --no-progress --id libvirt '/tmp/uricp/cache/freedos.qcow2' 'servers/freedos.qcow2'
|
|
44
|
+
rbd import --no-progress --id libvirt - <'/tmp/uricp/cache/freedos.qcow2' 'servers/freedos.qcow2'
|
|
45
45
|
"""
|
|
46
46
|
And the output should contain:
|
|
47
47
|
"""
|
|
@@ -20,7 +20,7 @@ module Uricp::Strategy
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def command
|
|
23
|
-
"rbd import --no-progress --id #{rbd_id}
|
|
23
|
+
"rbd import --no-progress --id #{rbd_id} -#{data_source} '#{rbd_cache_name}';"
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def proposal
|
|
@@ -30,11 +30,8 @@ module Uricp::Strategy
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def data_source
|
|
33
|
-
if from.scheme == 'pipe'
|
|
34
|
-
|
|
35
|
-
else
|
|
36
|
-
"'#{from.path}'"
|
|
37
|
-
end
|
|
33
|
+
return if from.scheme == 'pipe'
|
|
34
|
+
" <'#{from.path}'"
|
|
38
35
|
end
|
|
39
36
|
end
|
|
40
37
|
end
|
|
@@ -22,7 +22,7 @@ module Uricp::Strategy
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def command
|
|
25
|
-
"rbd import --no-progress --id #{rbd_id}
|
|
25
|
+
"rbd import --no-progress --id #{rbd_id} -#{data_source} '#{rbd_image_spec(to)}';"
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def proposal
|
|
@@ -32,11 +32,8 @@ module Uricp::Strategy
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def data_source
|
|
35
|
-
if from.scheme == 'pipe'
|
|
36
|
-
|
|
37
|
-
else
|
|
38
|
-
"'#{from.path}'"
|
|
39
|
-
end
|
|
35
|
+
return if from.scheme == 'pipe'
|
|
36
|
+
" <'#{from.path}'"
|
|
40
37
|
end
|
|
41
38
|
end
|
|
42
39
|
end
|
data/lib/uricp/version.rb
CHANGED
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.26
|
|
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: 2022-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aruba
|