uricp 0.0.25 → 0.0.26

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
  SHA256:
3
- metadata.gz: acf0f2c652c367c337a5df56eda0d3996799857614f6e91a3844b637b8d36fd6
4
- data.tar.gz: 3778050f26b276236ca88ca1d6b6df2547adc1daf9eeb8b33a5d7e92cf424cbf
3
+ metadata.gz: 937fe351785726ef27786e889bed4d5a1a9f8cb37058916fdb4613c8df528855
4
+ data.tar.gz: c895d696bcf2613018934f84907f43806fbbd98fce378bbe8663546e986a6608
5
5
  SHA512:
6
- metadata.gz: ddfdf97678c6c18e1582eb4ecb17d4328f7f713c31d59bc8512209a99cd47527acbcc7fd61953f1a4056ab623bed71c100c4c0658f96569cf3be2e7e0e94a66c
7
- data.tar.gz: d2ce88f8d34a54c1ce394b87d94364afc38ee2b310c8dae05a3cd3bd4c1a130d8f758caa25f49053d7692a44880aa9a0094d2c31caa696a9d0c73f49d5366aa2
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.25)
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
@@ -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} #{data_source} '#{rbd_cache_name}';"
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} #{data_source} '#{rbd_image_spec(to)}';"
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uricp
4
- VERSION = '0.0.25'
4
+ VERSION = '0.0.26'
5
5
  DEFAULT_SEGMENT_SIZE = '5 GiB'
6
6
  end
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.25
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: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba