cangallo 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7ebf3b1d9dbe3d482de15aab76fc565dac5e081
4
- data.tar.gz: 70cf9236aab61ce22ebe46e12b9929344d008d3a
3
+ metadata.gz: 905207cbfc1c82a8545d9987dc227509c0a4c6ae
4
+ data.tar.gz: 761fb7eaa2ffe859286e3ddf3f4b75eb11d7d24a
5
5
  SHA512:
6
- metadata.gz: f242b310221dd1631fa24c5d62f142034629db318d20c7e016bd0729ccd94c51f38ea22e2ed10961d46a524df04dd5a945ccaee07a1e2a4c7d7251326e764ea8
7
- data.tar.gz: f25a3baeab6f19f4921e1647479ed619aec8ee6d0a5c9ea1363e025d50d90c95073b14aec3514093a387baf5ff28ac5ab02df37497ed7a212eae56d8c1ef0c6e
6
+ metadata.gz: 6cd3e3087be5460335015af5dfc514eb3949e7cd071b270f4ab2218f20e94e5a89571fe9f02a1fc085bcc399a181b799d0779ac1db7396270156d29955019a24
7
+ data.tar.gz: a70994517eb3d363df3ee5acd895365a3d5a05cff339e272682052a2374bfe52c358a683d3bf87bb4b6a1781647768a62902ba14dd8e629290dabed5ad7c44cc
data/bin/canga CHANGED
@@ -257,8 +257,8 @@ class Canga < Thor
257
257
  desc "export IMAGE OUTPUT", "export an image to a file"
258
258
  option :format, :desc => "format for output image", :default => :qcow2,
259
259
  :aliases => :f
260
- option :compress, :desc => "compress output qcow2 image", :default => false,
261
- :aliases => :c
260
+ option :compress, :desc => "compress output qcow2 image", :type => :boolean,
261
+ :default => false, :aliases => :c
262
262
  def export(image, output)
263
263
  image = $cangallo.get(image)
264
264
 
@@ -96,7 +96,7 @@ class Cangallo
96
96
  def self.version
97
97
  str = `virt-customize --version`
98
98
 
99
- m = str.match(/^virt-customize (.*)$/)
99
+ m = str.match(/^virt-customize (\d+\.\d+\.\d+).*$/)
100
100
 
101
101
  if m
102
102
  m[1]
@@ -36,7 +36,7 @@ class Cangallo
36
36
  def self.qemu_img_version
37
37
  text = execute("--version")
38
38
 
39
- m = text.match(/^qemu-img version (\d+\.\d+\.\d+),/)
39
+ m = text.match(/^qemu-img version (\d+\.\d+\.\d+)/)
40
40
 
41
41
  if m
42
42
  m[1]
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  class Cangallo
19
- VERSION = '0.0.5'
19
+ VERSION = '0.0.6'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cangallo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Fontan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor