vagrant-mutate 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 54e5e005e1846633e4c584acf141a277121c6673
4
+ data.tar.gz: 9bdc4f4c11effa683d6e245671d55a34951ec04b
5
+ SHA512:
6
+ metadata.gz: ba0c34d684ae47140c2f4723204ed662a8958fbdf1aa2fab97eb842e05f9f5e751ca32c676f7778d2175eaf805001579261d702e2ef5e0422f6611edaaf18366
7
+ data.tar.gz: b2a019365f16ee2ebb92362d1df3a2fdabd39c66fb647a90d9ee1a714a099869b99c7eb5772928e517980b227971658738a441537b4c0caa6c940aa272868c5f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.2 (2015-03-03)
2
+ * Specify qcow compat instead of using default (#59)
3
+ * Provide clearer error when qemu-img missing (#62)
4
+
1
5
  # 0.3.1 (2014-08-17)
2
6
  * Improve compatibility with newer qemu-img releases
3
7
 
@@ -96,7 +96,7 @@ module VagrantMutate
96
96
  # S for sparse file
97
97
  qemu_options = '-p -S 16k'
98
98
 
99
- command = "qemu-img convert #{qemu_options} -O #{output_format} #{input_file} #{output_file}"
99
+ command = "qemu-img convert #{qemu_options} -O #{output_format} -o compat=1.1 #{input_file} #{output_file}"
100
100
  @logger.info "Running #{command}"
101
101
  unless system(command)
102
102
  raise Errors::WriteDiskFailed, :error_message => "qemu-img exited with status #{$?.exitstatus}"
@@ -22,6 +22,10 @@ module VagrantMutate
22
22
  error_key(:qemu_not_found)
23
23
  end
24
24
 
25
+ class QemuImgNotFound < VagrantMutateError
26
+ error_key(:qemu_img_not_found)
27
+ end
28
+
25
29
  class BoxNotFound < VagrantMutateError
26
30
  error_key(:box_not_found)
27
31
  end
@@ -15,7 +15,7 @@ module VagrantMutate
15
15
  end
16
16
  end
17
17
  # if we make it here qemu-img command was not found
18
- raise Errors::QemuNotFound
18
+ raise Errors::QemuImgNotFound
19
19
  end
20
20
 
21
21
  def self.verify_qemu_version(env)
@@ -1,3 +1,3 @@
1
1
  module VagrantMutate
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
data/locales/en.yml CHANGED
@@ -8,7 +8,9 @@ en:
8
8
  provider_not_supported: |-
9
9
  Vagrant-mutate does not support %{provider} for %{direction}
10
10
  qemu_not_found: |-
11
- Qemu-img was not found in your path
11
+ QEMU was not found in your path
12
+ qemu_img_not_found: |-
13
+ qemu-img was not found in your path
12
14
  box_not_found: |-
13
15
  The box %{box} was not found
14
16
  too_many_boxes_found: |-
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-mutate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.3.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Pitts
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-08-17 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Convert vagrant boxes to work with different providers
@@ -50,7 +45,7 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
54
49
  - CHANGELOG.md
55
50
  - Gemfile
56
51
  - LICENSE.txt
@@ -93,27 +88,26 @@ files:
93
88
  homepage: ''
94
89
  licenses:
95
90
  - MIT
91
+ metadata: {}
96
92
  post_install_message:
97
93
  rdoc_options: []
98
94
  require_paths:
99
95
  - lib
100
96
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
97
  requirements:
103
- - - ! '>='
98
+ - - ">="
104
99
  - !ruby/object:Gem::Version
105
100
  version: '0'
106
101
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
102
  requirements:
109
- - - ! '>='
103
+ - - ">="
110
104
  - !ruby/object:Gem::Version
111
105
  version: '0'
112
106
  requirements: []
113
107
  rubyforge_project:
114
- rubygems_version: 1.8.23
108
+ rubygems_version: 2.2.0
115
109
  signing_key:
116
- specification_version: 3
110
+ specification_version: 4
117
111
  summary: Convert vagrant boxes to work with different providers
118
112
  test_files:
119
113
  - test/expected_output/kvm/libvirt/Vagrantfile