vagrant-cachier 0.8.0 → 0.9.0

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: c34a7a777e84e089b03b3fe213c2f705df83304d
4
- data.tar.gz: 11310d3e4628d50460f5ba2e6523e727516d717a
3
+ metadata.gz: eb9bdabf654a8ccf402eb304f36ef1815e1dd006
4
+ data.tar.gz: 516f0dd101f3fd03c9982aaab5ab0f16f7f380b1
5
5
  SHA512:
6
- metadata.gz: 3f9af81dccf7ce4119172a77f6eb4d6078d00b0f339ba31d4a3a2291f30dc48b0634870ebf32ae48c561a7c4654457c2de20fe68b702f800b8fafa48260cc4a4
7
- data.tar.gz: 82839e00f19b88f973a7a4e09d171c3836bf6cfcfe8e208c782bfe3ab3aed489135593d720610bca0335e94a4908c0e85800c209dd7d8af71298f63ec7600edc
6
+ metadata.gz: f8a55baa02507a707ed67b63027e58a9dbab04e147544c61c2e00e780301e7bb0f0434c25aa7721c9f15e3b679576eac7ae625fe0b168a0dd602814e9ce45054
7
+ data.tar.gz: 0b4ca0c91bb85094db16b935cf41e34743da9ecc969d4dc756a530e09af1acaf2c7953ee8172ca8e8b33960fdc78e91aee9f52e6146ced97f12052a656a8683a
@@ -1,7 +1,15 @@
1
- ## [0.8.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.7.2...v0.8.0) (Jul 20, 2014)
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.
@@ -31,7 +31,7 @@ GIT
31
31
  PATH
32
32
  remote: .
33
33
  specs:
34
- vagrant-cachier (0.8.0)
34
+ vagrant-cachier (0.9.0)
35
35
 
36
36
  GEM
37
37
  remote: https://rubygems.org/
@@ -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
- @env[:home_path].join('cache', box_name)
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Cachier
3
- VERSION = "0.8.0"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  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.8.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-07-21 00:00:00.000000000 Z
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.8.0!\n\n If you
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