vagrant-save 0.3.0 → 0.3.1
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 +7 -0
- data/README.md +3 -2
- data/lib/vagrant-save/uploader.rb +5 -2
- data/lib/vagrant-save/version.rb +1 -1
- metadata +18 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cb13818ccbe5e7ade3859be370d60880fb5e2a83
|
4
|
+
data.tar.gz: 1ef13aa7f48ade51586ecc325045758f3d1ed2ce
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ca619292dbd0b54460f7c78ccb672b5ed2d7faf352074d671cb1dac9a0dec8eb3f01a5af87ce6d3b56047e081ef9637f04f916c3c0bc82bafc05f71d535c890b
|
7
|
+
data.tar.gz: 1837c22bf7856b89bdb6c14338d7b32e55c9825360160e746e458ff285cdbc2158d05fed993af62f1f5c1c24937f01247cb594ef08e17d399ef8204f0fddb10f
|
data/README.md
CHANGED
@@ -43,11 +43,12 @@ You may want to clean up the boxserver by deleting old versions. The `-k|--keep`
|
|
43
43
|
# Keeping the last six versions
|
44
44
|
vagrant save -k 6
|
45
45
|
|
46
|
-
# Keeping all versions
|
47
|
-
# Does not need to be written, as it is the default setting
|
46
|
+
# Keeping all versions, disable cleanup
|
48
47
|
vagrant save -k 0
|
49
48
|
```
|
50
49
|
|
50
|
+
The default value for `--keep` is `2`.
|
51
|
+
|
51
52
|
## License
|
52
53
|
|
53
54
|
The MIT License (MIT)
|
@@ -94,14 +94,17 @@ module VagrantPlugins
|
|
94
94
|
# @return int
|
95
95
|
def clean(machine, keep)
|
96
96
|
|
97
|
+
client = HTTPClient.new
|
98
|
+
client.connect_timeout = 10000
|
99
|
+
client.send_timeout = 10000
|
100
|
+
client.receive_timeout = 10000
|
101
|
+
|
97
102
|
data_url = make_url(machine)
|
98
103
|
|
99
104
|
@logger.debug("Load versions from #{data_url}")
|
100
105
|
|
101
106
|
res = client.get(data_url)
|
102
107
|
data = JSON.parse(res.http_body)
|
103
|
-
|
104
|
-
client = HTTPClient.new
|
105
108
|
saved_versions = data['versions'].map{ |v| v.version}
|
106
109
|
|
107
110
|
@logger.debug("Received #{saved_versions.length} versions")
|
data/lib/vagrant-save/version.rb
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-save
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Georg Grossberger
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: vagrant-export
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.3.4
|
22
20
|
type: :runtime
|
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: 0.3.4
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: net-http-uploadprogress
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 2.0.0
|
38
34
|
type: :runtime
|
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: 2.0.0
|
46
41
|
description: Export boxes to a boxserver on a remote machine using HTTP/PUT
|
@@ -49,39 +44,38 @@ executables: []
|
|
49
44
|
extensions: []
|
50
45
|
extra_rdoc_files: []
|
51
46
|
files:
|
47
|
+
- ".gitignore"
|
48
|
+
- Gemfile
|
49
|
+
- README.md
|
50
|
+
- lib/vagrant-save.rb
|
52
51
|
- lib/vagrant-save/command.rb
|
53
|
-
- lib/vagrant-save/version.rb
|
54
|
-
- lib/vagrant-save/uploader.rb
|
55
|
-
- lib/vagrant-save/plugin.rb
|
56
52
|
- lib/vagrant-save/errors.rb
|
57
|
-
- lib/vagrant-save.rb
|
58
|
-
-
|
53
|
+
- lib/vagrant-save/plugin.rb
|
54
|
+
- lib/vagrant-save/uploader.rb
|
55
|
+
- lib/vagrant-save/version.rb
|
59
56
|
- vagrant-save.gemspec
|
60
|
-
- README.md
|
61
|
-
- .gitignore
|
62
57
|
homepage: https://github.com/trenker/vagrant-save.git
|
63
58
|
licenses:
|
64
59
|
- MIT
|
60
|
+
metadata: {}
|
65
61
|
post_install_message:
|
66
62
|
rdoc_options: []
|
67
63
|
require_paths:
|
68
64
|
- lib
|
69
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
66
|
requirements:
|
72
|
-
- -
|
67
|
+
- - ">="
|
73
68
|
- !ruby/object:Gem::Version
|
74
69
|
version: '0'
|
75
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
71
|
requirements:
|
78
|
-
- -
|
72
|
+
- - ">="
|
79
73
|
- !ruby/object:Gem::Version
|
80
74
|
version: '0'
|
81
75
|
requirements: []
|
82
76
|
rubyforge_project:
|
83
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.4.6
|
84
78
|
signing_key:
|
85
|
-
specification_version:
|
79
|
+
specification_version: 4
|
86
80
|
summary: Export boxes to a boxserver
|
87
81
|
test_files: []
|