vagrant-cachier 0.8.0 → 0.9.0
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 +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +1 -1
- data/docs/buckets/yum.md +6 -0
- data/lib/vagrant-cachier/action/configure_bucket_root.rb +18 -1
- data/lib/vagrant-cachier/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: eb9bdabf654a8ccf402eb304f36ef1815e1dd006
|
|
4
|
+
data.tar.gz: 516f0dd101f3fd03c9982aaab5ab0f16f7f380b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8a55baa02507a707ed67b63027e58a9dbab04e147544c61c2e00e780301e7bb0f0434c25aa7721c9f15e3b679576eac7ae625fe0b168a0dd602814e9ce45054
|
|
7
|
+
data.tar.gz: 0b4ca0c91bb85094db16b935cf41e34743da9ecc969d4dc756a530e09af1acaf2c7953ee8172ca8e8b33960fdc78e91aee9f52e6146ced97f12052a656a8683a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
## [0.
|
|
1
|
+
## [0.9.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.8.0...v0.9.0) (Aug 9, 2014)
|
|
2
2
|
|
|
3
3
|
**This is considered a release candidate for a 1.0 that will be cut within ~2 weeks if no major issues are reported**
|
|
4
4
|
|
|
5
|
+
FEATURES:
|
|
6
|
+
|
|
7
|
+
- Suport for caching packages for Docker containers that doesn't have a base box specified [[GH-116]]
|
|
8
|
+
|
|
9
|
+
[GH-116]: https://github.com/fgrehm/vagrant-cachier/pull/116
|
|
10
|
+
|
|
11
|
+
## [0.8.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.7.2...v0.8.0) (Jul 20, 2014)
|
|
12
|
+
|
|
5
13
|
BACKWARDS INCOMPATIBILITIES:
|
|
6
14
|
|
|
7
15
|
- Removed deprecated `config.enable_nfs` config.
|
data/Gemfile.lock
CHANGED
data/docs/buckets/yum.md
CHANGED
|
@@ -12,3 +12,9 @@ Vagrant.configure("2") do |config|
|
|
|
12
12
|
config.cache.enable :yum
|
|
13
13
|
end
|
|
14
14
|
```
|
|
15
|
+
|
|
16
|
+
### :warning: Notice about Windows hosts :warning:
|
|
17
|
+
|
|
18
|
+
In case this bucket is enabled and a Windows host is in use, you might see an
|
|
19
|
+
ugly stacktrace as described on [this comment](https://github.com/fgrehm/vagrant-cachier/issues/117#issuecomment-50548393)
|
|
20
|
+
if some Yum repository is not available during provisioning.
|
|
@@ -33,7 +33,20 @@ module VagrantPlugins
|
|
|
33
33
|
def cache_root
|
|
34
34
|
@cache_root ||= case @env[:machine].config.cache.scope.to_sym
|
|
35
35
|
when :box
|
|
36
|
-
@
|
|
36
|
+
@box_name = box_name
|
|
37
|
+
# Box is optional with docker provider
|
|
38
|
+
if @box_name.nil? && @env[:machine].provider_name.to_sym == :docker
|
|
39
|
+
@image_name = image_name
|
|
40
|
+
# Use the image name if it's set
|
|
41
|
+
if @image_name
|
|
42
|
+
bucket_name = @image_name.gsub(':', '-')
|
|
43
|
+
else
|
|
44
|
+
raise "Cachier plugin only supported with docker provider when image is used"
|
|
45
|
+
end
|
|
46
|
+
else
|
|
47
|
+
bucket_name = @box_name
|
|
48
|
+
end
|
|
49
|
+
@env[:home_path].join('cache', bucket_name)
|
|
37
50
|
when :machine
|
|
38
51
|
@env[:machine].data_dir.parent.join('cache')
|
|
39
52
|
else
|
|
@@ -44,6 +57,10 @@ module VagrantPlugins
|
|
|
44
57
|
def box_name
|
|
45
58
|
@env[:machine].config.vm.box
|
|
46
59
|
end
|
|
60
|
+
|
|
61
|
+
def image_name
|
|
62
|
+
@env[:machine].provider_config.image
|
|
63
|
+
end
|
|
47
64
|
end
|
|
48
65
|
end
|
|
49
66
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-cachier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabio Rehm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Caffeine reducer
|
|
14
14
|
email:
|
|
@@ -91,7 +91,7 @@ homepage: https://github.com/fgrehm/vagrant-cachier
|
|
|
91
91
|
licenses:
|
|
92
92
|
- MIT
|
|
93
93
|
metadata: {}
|
|
94
|
-
post_install_message: "\n Thanks for installing vagrant-cachier 0.
|
|
94
|
+
post_install_message: "\n Thanks for installing vagrant-cachier 0.9.0!\n\n If you
|
|
95
95
|
are new to vagrant-cachier just follow along with the docs available\n at http://fgrehm.viewdocs.io/vagrant-cachier.\n\n
|
|
96
96
|
\ If you are upgrading from a previous version, please note that plugin has gone\n
|
|
97
97
|
\ through many backwards incompatible changes recently. Please check out\n https://github.com/fgrehm/vagrant-cachier/blob/master/CHANGELOG.md\n
|