vagrant-export 0.3.5 → 0.3.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: 1c449b4ab728d16122ab1684cc5c2950b20bc818
4
- data.tar.gz: adce85990ea7f430caf4f2b9e427f624f48fe8b0
3
+ metadata.gz: 1f91b7d0314d4679c7c0dbc2afe997417813e88e
4
+ data.tar.gz: d98a042b7a3c5c3d1ce1204ec264a34023ba946e
5
5
  SHA512:
6
- metadata.gz: 449990b155f38b7f3af3fd342bbdac52b65cc361c68d78076dd2efc7c2581172ce36490b0ab607169b1fef6a30363b7145102a18628c1f64c940fe869df3e3ae
7
- data.tar.gz: 26f494c83a132fe4d802d76fe7501755ea78d701913a9d0ba931530995be5a9eb1c456b1c286ac1713912b961f9323a3e87acb654ed50d61fde7da8150371a93
6
+ metadata.gz: faab3f7b92614e53762da66595cee06e2ade238ca3f7c5cfc851d9b0e775c8b8463a534a761676dbcc5c6383c614608f32bb702e4e00bbe1c4c3d30bc27586fa
7
+ data.tar.gz: 8250d71af1b2e79b6e7814ecb4659fa7d41e31c16bed5a47e3c14e444f3b92e21b351a7c1c2156b207d95ca91646b293aa4630a34cb8e9be12361c91a8098fc0
@@ -341,7 +341,7 @@ module VagrantPlugins
341
341
 
342
342
  files = Dir.glob(File.join('.', '**', '*'))
343
343
  @logger.debug("Create box file #{@box_file_name} containing #{files}")
344
- bash_exec = Vagrant::Util::Which.which('bash');
344
+ bash_exec = Vagrant::Util::Which.which('bash').to_s;
345
345
 
346
346
  if File.executable?(bash_exec) && Vagrant::Util::Which.which('pv') != nil && Vagrant::Util::Which.which('tar') && Vagrant::Util::Which.which('gzip')
347
347
  total_size = 0
@@ -362,13 +362,15 @@ module VagrantPlugins
362
362
 
363
363
  Vagrant::Util::Subprocess.execute(bash_exec, script_file, @tmp_path.to_s, total_size.to_s, @box_file_name, opts) { |io, data|
364
364
  d = data.to_s
365
+ p = d.match(/\d+/).to_a
365
366
 
366
- if io == :stderr
367
- @logger.error(d)
368
- else
367
+ @logger.debug(io + ': ' + d)
368
+
369
+ if p.length > 0
369
370
  @env.ui.clear_line
370
- @env.ui.info(d.match(/\d+/).to_a.pop.to_s + '%')
371
+ @env.ui.info(p.pop.to_s + '%')
371
372
  end
373
+
372
374
  }
373
375
 
374
376
  @env.ui.clear_line
@@ -5,6 +5,6 @@
5
5
 
6
6
  module VagrantPlugins
7
7
  module Export
8
- VERSION = '0.3.5'
8
+ VERSION = '0.3.6'
9
9
  end
10
10
  end
data/res/progress_tar.sh CHANGED
@@ -4,4 +4,4 @@ DIRECTORY=$1
4
4
  TOTAL_SIZE=$2
5
5
  TARGET_TAR=$3
6
6
 
7
- tar -c ${DIRECTORY}/* | pv -n -s ${TOTAL_SIZE} | gzip -c > ${TARGET_TAR}
7
+ tar -C ${DIRECTORY} -c ${DIRECTORY}/* | pv -f -n -s ${TOTAL_SIZE} | gzip -c > ${TARGET_TAR}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Grossberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-21 00:00:00.000000000 Z
11
+ date: 2015-06-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Export boxes to .box files including the original Vagrantfile and some
14
14
  cleanups inside the VM
@@ -19,9 +19,7 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
21
  - Gemfile
22
- - Gemfile.lock
23
22
  - README.md
24
- - Vagrantfile
25
23
  - lib/vagrant-export.rb
26
24
  - lib/vagrant-export/command.rb
27
25
  - lib/vagrant-export/error.rb
@@ -30,7 +28,6 @@ files:
30
28
  - lib/vagrant-export/version.rb
31
29
  - res/cleanup.sh
32
30
  - res/progress_tar.sh
33
- - vagrant-export-0.3.4.gem
34
31
  - vagrant-export.gemspec
35
32
  homepage: https://github.com/trenker/vagrant-export
36
33
  licenses:
@@ -52,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
49
  version: '0'
53
50
  requirements: []
54
51
  rubyforge_project:
55
- rubygems_version: 2.2.2
52
+ rubygems_version: 2.4.6
56
53
  signing_key:
57
54
  specification_version: 4
58
55
  summary: Export boxes to .box files including the original Vagrantfile and some cleanups
data/Gemfile.lock DELETED
@@ -1,102 +0,0 @@
1
- GIT
2
- remote: https://github.com/mitchellh/vagrant.git
3
- revision: a8dcf92f14d8bb8828a43b91804334673508f467
4
- specs:
5
- vagrant (1.7.2)
6
- bundler (>= 1.5.2, < 1.8.0)
7
- childprocess (~> 0.5.0)
8
- erubis (~> 2.7.0)
9
- hashicorp-checkpoint (~> 0.1.1)
10
- i18n (>= 0.6.0, <= 0.8.0)
11
- listen (~> 2.8.0)
12
- log4r (~> 1.1.9, < 1.1.11)
13
- net-scp (~> 1.1.0)
14
- net-sftp (~> 2.1)
15
- net-ssh (>= 2.6.6, < 2.10.0)
16
- nokogiri (= 1.6.3.1)
17
- rb-kqueue (~> 0.2.0)
18
- rest-client (>= 1.6.0, < 2.0)
19
- wdm (~> 0.1.0)
20
- winrm (~> 1.3)
21
- winrm-fs (~> 0.1.0)
22
-
23
- PATH
24
- remote: .
25
- specs:
26
- vagrant-export (0.3.4)
27
-
28
- GEM
29
- remote: https://rubygems.org/
30
- specs:
31
- builder (3.2.2)
32
- celluloid (0.16.0)
33
- timers (~> 4.0.0)
34
- childprocess (0.5.5)
35
- ffi (~> 1.0, >= 1.0.11)
36
- erubis (2.7.0)
37
- ffi (1.9.7)
38
- gssapi (1.2.0)
39
- ffi (>= 1.0.1)
40
- gyoku (1.2.3)
41
- builder (>= 2.1.2)
42
- hashicorp-checkpoint (0.1.4)
43
- hitimes (1.2.2)
44
- httpclient (2.6.0.1)
45
- i18n (0.7.0)
46
- listen (2.8.6)
47
- celluloid (>= 0.15.2)
48
- rb-fsevent (>= 0.9.3)
49
- rb-inotify (>= 0.9)
50
- little-plugger (1.1.3)
51
- log4r (1.1.10)
52
- logging (1.8.2)
53
- little-plugger (>= 1.1.3)
54
- multi_json (>= 1.8.4)
55
- mime-types (2.4.3)
56
- mini_portile (0.6.0)
57
- multi_json (1.11.0)
58
- net-scp (1.1.2)
59
- net-ssh (>= 2.6.5)
60
- net-sftp (2.1.2)
61
- net-ssh (>= 2.6.5)
62
- net-ssh (2.9.2)
63
- netrc (0.10.3)
64
- nokogiri (1.6.3.1-x64-mingw32)
65
- mini_portile (= 0.6.0)
66
- nori (2.4.0)
67
- rb-fsevent (0.9.4)
68
- rb-inotify (0.9.5)
69
- ffi (>= 0.5.0)
70
- rb-kqueue (0.2.3)
71
- ffi (>= 0.5.0)
72
- rest-client (1.7.3-x64-mingw32)
73
- ffi (~> 1.9)
74
- mime-types (>= 1.16, < 3.0)
75
- netrc (~> 0.7)
76
- rubyntlm (0.4.0)
77
- rubyzip (1.1.7)
78
- timers (4.0.1)
79
- hitimes
80
- uuidtools (2.1.5)
81
- wdm (0.1.0)
82
- winrm (1.3.0)
83
- builder (>= 2.1.2)
84
- gssapi (~> 1.2)
85
- gyoku (~> 1.0)
86
- httpclient (~> 2.2, >= 2.2.0.2)
87
- logging (~> 1.6, >= 1.6.1)
88
- nori (~> 2.0)
89
- rubyntlm (~> 0.4.0)
90
- uuidtools (~> 2.1.2)
91
- winrm-fs (0.1.0)
92
- erubis (~> 2.7)
93
- logging (~> 1.6, >= 1.6.1)
94
- rubyzip (~> 1.1)
95
- winrm (~> 1.3.0)
96
-
97
- PLATFORMS
98
- x64-mingw32
99
-
100
- DEPENDENCIES
101
- vagrant!
102
- vagrant-export!
data/Vagrantfile DELETED
@@ -1,3 +0,0 @@
1
- Vagrant.configure('2') do |config|
2
- config.vm.box = 'hashicorp/precise32'
3
- end
Binary file