vagrant-export 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: cec4005b9400267a35744c5496c94a2815ac0814
4
- data.tar.gz: d505e26ea8b857b1fd61faef0664806b66fc463e
3
+ metadata.gz: e755fa029f52f3b879e3b5593a71e58937088b0a
4
+ data.tar.gz: 336f541f22a877dae98e67835745c17c57bad929
5
5
  SHA512:
6
- metadata.gz: 76e6ba5dfab103e50a7af71bef2551657e0d9e03aa994b7b8870e667b9699de04abb6069b6b64b989050ffb518990fc4ee983449317afcabe71b2cd83687a9ac
7
- data.tar.gz: 5bb6347fa0242fd6d3e505ddb58b3cb9258decd6904f2d8c77bdc630ee92f05ac3e9cd7b50c3d0eddf09c86a4ed7ff4a1bcfb761daddef14713f0b06816448a8
6
+ metadata.gz: 2dbb40ea6ed69b44db240d199ca312ea4559dcd9e2250f2179a305e1e3d69f81a26abb2b055e399adaf1112b662de184d16d63fa2b75366fd73420009704ccfa
7
+ data.tar.gz: 124f86fd651583256a78e5eb8aeb5e7cd5261918db16e8f24a36908649fe043b21be592a62ed64c846299acac43b90c450ec1ebe06f1c487c19cc3a1740c242b
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # Vagrant Export
2
+
3
+ [Vagrant](http://www.vagrantup.com) plugin to export compressed and optimized linux boxes from virtualbox into a .box file
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ vagrant plugin install vagrant-export
9
+ ```
10
+
11
+ ## Useage
12
+
13
+ ```bash
14
+ vagrant export
15
+ ```
16
+ Exports the current box into a .box file. The file name is determined by the setting `config.vm.name`, were slashes are replaced with underscores.
17
+
18
+ So a Vagrantfile with this setting:
19
+
20
+ ```ruby
21
+ Vagrant.configure(2) do |config|
22
+ config.vm.name = "hashicorp/precise32"
23
+ end
24
+ ```
25
+
26
+ will be exported to a file named `hashicorp_precise32.box`
27
+
28
+ ## License
29
+
30
+ The MIT License (MIT)
31
+
32
+ Copyright (c) 2015 Georg Großberger
33
+
34
+ Permission is hereby granted, free of charge, to any person obtaining a copy
35
+ of this software and associated documentation files (the "Software"), to deal
36
+ in the Software without restriction, including without limitation the rights
37
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ copies of the Software, and to permit persons to whom the Software is
39
+ furnished to do so, subject to the following conditions:
40
+
41
+ The above copyright notice and this permission notice shall be included in
42
+ all copies or substantial portions of the Software.
43
+
44
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
50
+ THE SOFTWARE.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module VagrantPlugins
7
7
  module Export
8
- VERSION = '0.2.3'
8
+ VERSION = '0.2.4'
9
9
  end
10
10
  end
data/res/cleanup.sh CHANGED
@@ -1,5 +1,19 @@
1
1
  #!/bin/bash
2
2
 
3
+ echo "Cleaning application database tables"
4
+ DBS=$(echo 'SHOW DATABASES;' | mysql -u root | egrep -v 'Database|information_schema|performance_schema|mysql')
5
+
6
+ for DB in ${DBS}
7
+ do
8
+ echo 'SHOW TABLES;' | \
9
+ mysql -u root $DB | \
10
+ egrep '^cf_|^index_|^tx_realurl|sys_log|sys_history|dataflow_batch_export|dataflow_batch_import|log_customer|log_quote|log_summary|log_summary_type|log_url|log_url_info|log_visitor|log_visitor_info|log_visitor_online|report_viewed_product_index|report_compared_product_index|report_event|index_event|catalog_compare_item' | \
11
+ egrep -v 'index_stat|index_conf|realurl_redirect' | \
12
+ awk '{print "TRUNCATE "$1";"}' | \
13
+ mysql -u root $DB
14
+
15
+ done
16
+
3
17
  echo "Removing old kernel packages"
4
18
  apt-get -y --purge remove $(dpkg --list | grep '^rc' | awk '{print $2}')
5
19
  apt-get -y --purge remove $(dpkg --list | egrep 'linux-image-[0-9]' | awk '{print $3,$2}' | sort -nr | tail -n +2 | grep -v $(uname -r) | awk '{ print $2}')
@@ -19,6 +33,7 @@ rm -rf $HOME/tmp
19
33
  if [[ -d /var/www/typo3temp ]]; then
20
34
  echo "Empty TYPO3 CMS temp files"
21
35
  find /var/www/typo3temp -type f -exec rm -f {} \;
36
+ find /var/www/typo3temp -type d -iname "_processed_" -exec rm -rf {} \;
22
37
  fi
23
38
 
24
39
  if [[ -d /var/www/Data/Temporary ]]; then
@@ -26,7 +41,7 @@ if [[ -d /var/www/Data/Temporary ]]; then
26
41
  rm -rf /var/www/Data/Temporary/*
27
42
  fi
28
43
 
29
- if [[ -d /var/www/downloader/.cache ]]; then
44
+ if [[ -d /var/www/var/cache ]]; then
30
45
  echo "Empty Magento temp files"
31
46
  rm -rf /var/www/downloader/.cache/*
32
47
  rm -rf /var/www/downloader/pearlib/cache/*
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Großberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2015-01-09 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,7 +19,7 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
21
  - Gemfile
22
- - Gemfile.lock
22
+ - README.md
23
23
  - lib/vagrant-export.rb
24
24
  - lib/vagrant-export/command.rb
25
25
  - lib/vagrant-export/exporter.rb
data/Gemfile.lock DELETED
@@ -1,100 +0,0 @@
1
- GIT
2
- remote: https://github.com/mitchellh/vagrant.git
3
- revision: abdf1fdd04d74218db05e4fbd69e1dab4e0814c5
4
- specs:
5
- vagrant (1.7.0.dev)
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)
11
- listen (~> 2.7.11)
12
- log4r (~> 1.1.9, < 1.1.11)
13
- net-scp (~> 1.1.0)
14
- net-ssh (>= 2.6.6, < 2.10.0)
15
- nokogiri (= 1.6.3.1)
16
- rb-kqueue (~> 0.2.0)
17
- wdm (~> 0.1.0)
18
- winrm (~> 1.1.3)
19
-
20
- PATH
21
- remote: .
22
- specs:
23
- vagrant-export (0.2.1)
24
-
25
- GEM
26
- remote: https://rubygems.org/
27
- specs:
28
- akami (1.2.2)
29
- gyoku (>= 0.4.0)
30
- nokogiri
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.6)
38
- gssapi (1.0.3)
39
- ffi (>= 1.0.1)
40
- gyoku (1.2.2)
41
- builder (>= 2.1.2)
42
- hashicorp-checkpoint (0.1.4)
43
- hitimes (1.2.2)
44
- httpclient (2.5.3.3)
45
- httpi (0.9.7)
46
- rack
47
- i18n (0.6.11)
48
- listen (2.7.12)
49
- celluloid (>= 0.15.2)
50
- rb-fsevent (>= 0.9.3)
51
- rb-inotify (>= 0.9)
52
- little-plugger (1.1.3)
53
- log4r (1.1.10)
54
- logging (1.8.2)
55
- little-plugger (>= 1.1.3)
56
- multi_json (>= 1.8.4)
57
- mini_portile (0.6.0)
58
- multi_json (1.10.1)
59
- net-scp (1.1.2)
60
- net-ssh (>= 2.6.5)
61
- net-ssh (2.9.1)
62
- nokogiri (1.6.3.1)
63
- mini_portile (= 0.6.0)
64
- nori (1.1.5)
65
- rack (1.5.2)
66
- rb-fsevent (0.9.4)
67
- rb-inotify (0.9.5)
68
- ffi (>= 0.5.0)
69
- rb-kqueue (0.2.3)
70
- ffi (>= 0.5.0)
71
- rubyntlm (0.1.1)
72
- savon (0.9.5)
73
- akami (~> 1.0)
74
- builder (>= 2.1.2)
75
- gyoku (>= 0.4.0)
76
- httpi (~> 0.9)
77
- nokogiri (>= 1.4.0)
78
- nori (~> 1.0)
79
- wasabi (~> 1.0)
80
- timers (4.0.1)
81
- hitimes
82
- uuidtools (2.1.5)
83
- wasabi (1.0.0)
84
- nokogiri (>= 1.4.0)
85
- wdm (0.1.0)
86
- winrm (1.1.3)
87
- gssapi (~> 1.0.0)
88
- httpclient (~> 2.2, >= 2.2.0.2)
89
- logging (~> 1.6, >= 1.6.1)
90
- nokogiri (~> 1.5)
91
- rubyntlm (~> 0.1.1)
92
- savon (= 0.9.5)
93
- uuidtools (~> 2.1.2)
94
-
95
- PLATFORMS
96
- ruby
97
-
98
- DEPENDENCIES
99
- vagrant!
100
- vagrant-export!