vagrant-mutate 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/vagrant-mutate/box/box.rb +3 -1
- data/lib/vagrant-mutate/converter/converter.rb +3 -2
- data/lib/vagrant-mutate/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13ec603ec569b8231d5560dd29c8897ef8b13bee
|
4
|
+
data.tar.gz: 290f07e0ac8daaeb868447f0b0f157e7e8b81d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 232699da95537caa799db9aac7aa2050475fa64c76cb66d9c1ede25e2666ea71a6bcc5c6707700c5e0e3d5a6f77e58893eb3a1a222abff291f501c5a594f3261
|
7
|
+
data.tar.gz: 5cef673601437980747e4490887b41f4f10c98e8211cb04e48b6b2ca7000c617425aedf118081c0ebeb61e1eac67c9d707f888754ecb812146c07d579df76d53
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'shellwords'
|
2
|
+
|
1
3
|
module VagrantMutate
|
2
4
|
module Box
|
3
5
|
class Box
|
@@ -24,7 +26,7 @@ module VagrantMutate
|
|
24
26
|
end
|
25
27
|
|
26
28
|
def extract_from_qemu_info(expression)
|
27
|
-
input_file = File.join(@dir, image_name)
|
29
|
+
input_file = File.join(@dir, image_name).shellescape
|
28
30
|
info = `qemu-img info #{input_file}`
|
29
31
|
@logger.debug "qemu-img info output\n#{info}"
|
30
32
|
if info =~ expression
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'fileutils'
|
2
|
+
require 'shellwords'
|
2
3
|
|
3
4
|
module VagrantMutate
|
4
5
|
module Converter
|
@@ -86,8 +87,8 @@ module VagrantMutate
|
|
86
87
|
end
|
87
88
|
|
88
89
|
def convert_disk
|
89
|
-
input_file = File.join(@input_box.dir, @input_box.image_name)
|
90
|
-
output_file = File.join(@output_box.dir, @output_box.image_name)
|
90
|
+
input_file = File.join(@input_box.dir, @input_box.image_name).shellescape
|
91
|
+
output_file = File.join(@output_box.dir, @output_box.image_name).shellescape
|
91
92
|
output_format = @output_box.image_format
|
92
93
|
|
93
94
|
# p for progress bar
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-mutate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pitts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.2.
|
108
|
+
rubygems_version: 2.2.2
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Convert vagrant boxes to work with different providers
|