vagrant-cachier 1.1.0 → 1.2.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 +18 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +22 -13
- data/docs/buckets/chef_rubygems.md +18 -0
- data/docs/template.html +1 -0
- data/lib/vagrant-cachier/bucket.rb +1 -0
- data/lib/vagrant-cachier/bucket/chef_gem.rb +25 -0
- data/lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb +1 -1
- data/lib/vagrant-cachier/cap/linux/chef_gemdir.rb +20 -0
- data/lib/vagrant-cachier/capabilities.rb +5 -0
- data/lib/vagrant-cachier/version.rb +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6e6cd454dcf842045a953db7d04ebb1cf674a46
|
|
4
|
+
data.tar.gz: 519e500d6cbc8dffdf954f68c73131eaf9627cc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1e782dc85ae462c0e2500d3ecd79d7096b5f9e84f7bf17f7d9303da4569f1fc58e87c6c35936856ae13e809786a8f66d965b988454b5c6e75319544e50de036
|
|
7
|
+
data.tar.gz: 094c5f3588d29b434139b45b2308ef11900226b7d6cf6fde8f8291e680069b31346f969d693f2da4c6e975255c6502e61acc1ec27ace50cf850941526d6f47a1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.2.0](https://github.com/fgrehm/vagrant-cachier/compare/v1.1.0...v1.2.0) (Jan 14, 2015)
|
|
2
|
+
|
|
3
|
+
FEATURES:
|
|
4
|
+
|
|
5
|
+
- [Chef Gems bucket](http://fgrehm.viewdocs.io/vagrant-cachier/buckets/chef_rubygems) [[GH-129]]
|
|
6
|
+
|
|
7
|
+
[GH-129]: https://github.com/fgrehm/vagrant-cachier/pull/129
|
|
8
|
+
|
|
9
|
+
BUG FIXES:
|
|
10
|
+
|
|
11
|
+
- Fix provisioner resolution on Vagrant 1.7+ [[GH-133]] / [[GH-134]]
|
|
12
|
+
- Do not modify Vagrant core object, preventing unpredictable behavior [[GH-135]]
|
|
13
|
+
|
|
14
|
+
[GH-133]: https://github.com/fgrehm/vagrant-cachier/issues/133
|
|
15
|
+
[GH-134]: https://github.com/fgrehm/vagrant-cachier/pull/134
|
|
16
|
+
[GH-135]: https://github.com/fgrehm/vagrant-cachier/pull/135
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.1.0](https://github.com/fgrehm/vagrant-cachier/compare/v1.0.0...v1.1.0) (Oct 15, 2014)
|
|
2
20
|
|
|
3
21
|
FEATURES:
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
GIT
|
|
2
2
|
remote: git://github.com/fgrehm/vagrant-lxc.git
|
|
3
|
-
revision:
|
|
3
|
+
revision: c9cd671a32f730fff4b6e4fdd3687a531af0663c
|
|
4
4
|
specs:
|
|
5
|
-
vagrant-lxc (1.0
|
|
5
|
+
vagrant-lxc (1.1.0)
|
|
6
6
|
|
|
7
7
|
GIT
|
|
8
8
|
remote: git://github.com/fgrehm/vagrant-pristine.git
|
|
@@ -12,28 +12,30 @@ GIT
|
|
|
12
12
|
|
|
13
13
|
GIT
|
|
14
14
|
remote: git://github.com/mitchellh/vagrant.git
|
|
15
|
-
revision:
|
|
16
|
-
tag: v1.
|
|
15
|
+
revision: 1cd667b243f4a263cd5322b6455165cc676b6f7f
|
|
16
|
+
tag: v1.7.2
|
|
17
17
|
specs:
|
|
18
|
-
vagrant (1.
|
|
19
|
-
bundler (>= 1.5.2, < 1.
|
|
18
|
+
vagrant (1.7.2)
|
|
19
|
+
bundler (>= 1.5.2, < 1.8.0)
|
|
20
20
|
childprocess (~> 0.5.0)
|
|
21
21
|
erubis (~> 2.7.0)
|
|
22
22
|
hashicorp-checkpoint (~> 0.1.1)
|
|
23
23
|
i18n (~> 0.6.0)
|
|
24
|
-
listen (~> 2.
|
|
24
|
+
listen (~> 2.8.0)
|
|
25
25
|
log4r (~> 1.1.9, < 1.1.11)
|
|
26
26
|
net-scp (~> 1.1.0)
|
|
27
|
+
net-sftp (~> 2.1)
|
|
27
28
|
net-ssh (>= 2.6.6, < 2.10.0)
|
|
28
29
|
nokogiri (= 1.6.3.1)
|
|
29
30
|
rb-kqueue (~> 0.2.0)
|
|
31
|
+
rest-client (>= 1.6.0, < 2.0)
|
|
30
32
|
wdm (~> 0.1.0)
|
|
31
33
|
winrm (~> 1.1.3)
|
|
32
34
|
|
|
33
35
|
PATH
|
|
34
36
|
remote: .
|
|
35
37
|
specs:
|
|
36
|
-
vagrant-cachier (1.
|
|
38
|
+
vagrant-cachier (1.2.0)
|
|
37
39
|
|
|
38
40
|
GEM
|
|
39
41
|
remote: https://rubygems.org/
|
|
@@ -54,11 +56,11 @@ GEM
|
|
|
54
56
|
builder (>= 2.1.2)
|
|
55
57
|
hashicorp-checkpoint (0.1.4)
|
|
56
58
|
hitimes (1.2.2)
|
|
57
|
-
httpclient (2.
|
|
59
|
+
httpclient (2.6.0.1)
|
|
58
60
|
httpi (0.9.7)
|
|
59
61
|
rack
|
|
60
62
|
i18n (0.6.11)
|
|
61
|
-
listen (2.
|
|
63
|
+
listen (2.8.5)
|
|
62
64
|
celluloid (>= 0.15.2)
|
|
63
65
|
rb-fsevent (>= 0.9.3)
|
|
64
66
|
rb-inotify (>= 0.9)
|
|
@@ -67,21 +69,28 @@ GEM
|
|
|
67
69
|
logging (1.8.2)
|
|
68
70
|
little-plugger (>= 1.1.3)
|
|
69
71
|
multi_json (>= 1.8.4)
|
|
72
|
+
mime-types (2.4.3)
|
|
70
73
|
mini_portile (0.6.0)
|
|
71
74
|
multi_json (1.10.1)
|
|
72
75
|
net-scp (1.1.2)
|
|
73
76
|
net-ssh (>= 2.6.5)
|
|
74
|
-
net-
|
|
77
|
+
net-sftp (2.1.2)
|
|
78
|
+
net-ssh (>= 2.6.5)
|
|
79
|
+
net-ssh (2.9.2)
|
|
80
|
+
netrc (0.10.2)
|
|
75
81
|
nokogiri (1.6.3.1)
|
|
76
82
|
mini_portile (= 0.6.0)
|
|
77
83
|
nori (1.1.5)
|
|
78
|
-
rack (1.
|
|
79
|
-
rake (10.
|
|
84
|
+
rack (1.6.0)
|
|
85
|
+
rake (10.4.2)
|
|
80
86
|
rb-fsevent (0.9.4)
|
|
81
87
|
rb-inotify (0.9.5)
|
|
82
88
|
ffi (>= 0.5.0)
|
|
83
89
|
rb-kqueue (0.2.3)
|
|
84
90
|
ffi (>= 0.5.0)
|
|
91
|
+
rest-client (1.7.2)
|
|
92
|
+
mime-types (>= 1.16, < 3.0)
|
|
93
|
+
netrc (~> 0.7)
|
|
85
94
|
rubyntlm (0.1.1)
|
|
86
95
|
savon (0.9.5)
|
|
87
96
|
akami (~> 1.0)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Chef RubyGems
|
|
2
|
+
|
|
3
|
+
When a Chef installation is detected, this bucket caches its embedded gems.
|
|
4
|
+
Most of these gems are part of the Chef omnibus package but sometimes cookbooks
|
|
5
|
+
need to install extra gems to run within the context of a Chef recipe using the
|
|
6
|
+
`chef_gem` resource.
|
|
7
|
+
|
|
8
|
+
The embedded Chef gem location is returned by running the
|
|
9
|
+
`/opt/chef/embedded/bin/gem env gemdir` command.
|
|
10
|
+
|
|
11
|
+
To manually enable it:
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
Vagrant.configure("2") do |config|
|
|
15
|
+
config.vm.box = 'some-box-using-chef-provisioner'
|
|
16
|
+
config.cache.enable :chef_gem
|
|
17
|
+
end
|
|
18
|
+
```
|
data/docs/template.html
CHANGED
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
<li><a tabindex="-1" href="buckets/apt-lists">apt-lists</a></li>
|
|
88
88
|
<li><a tabindex="-1" href="buckets/apt-cacher">apt-cacher</a></li>
|
|
89
89
|
<li><a tabindex="-1" href="buckets/chef">Chef</a></li>
|
|
90
|
+
<li><a tabindex="-1" href="buckets/chef_rubygems">Chef Gems</a></li>
|
|
90
91
|
<li><a tabindex="-1" href="buckets/composer">Composer</a></li>
|
|
91
92
|
<li><a tabindex="-1" href="buckets/bower">Bower</a></li>
|
|
92
93
|
<li><a tabindex="-1" href="buckets/pacman">Pacman</a></li>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module VagrantPlugins
|
|
2
|
+
module Cachier
|
|
3
|
+
class Bucket
|
|
4
|
+
class ChefGem < Bucket
|
|
5
|
+
def self.capability
|
|
6
|
+
:chef_gemdir
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def install
|
|
10
|
+
if guest.capability?(:chef_gemdir)
|
|
11
|
+
if gemdir_path = guest.capability(:chef_gemdir)
|
|
12
|
+
prefix = gemdir_path.split('/').last
|
|
13
|
+
bucket_path = "/tmp/vagrant-cache/#{@name}/#{prefix}"
|
|
14
|
+
gem_cache_path = "#{gemdir_path}/cache"
|
|
15
|
+
|
|
16
|
+
symlink(gem_cache_path, bucket_path)
|
|
17
|
+
end
|
|
18
|
+
else
|
|
19
|
+
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'ChefRubyGems')
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -6,7 +6,7 @@ module VagrantPlugins
|
|
|
6
6
|
def self.chef_provisioner?(machine)
|
|
7
7
|
provisioners = machine.config.vm.provisioners
|
|
8
8
|
chef_provisioners = [:chef_solo, :chef_client]
|
|
9
|
-
compat_provisioners = provisioners.
|
|
9
|
+
compat_provisioners = provisioners.select { |p| chef_provisioners.include? p.name || p.type }
|
|
10
10
|
|
|
11
11
|
if compat_provisioners.size > 1
|
|
12
12
|
raise "One machine is using multiple chef provisioners, which is unsupported."
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module VagrantPlugins
|
|
2
|
+
module Cachier
|
|
3
|
+
module Cap
|
|
4
|
+
module Linux
|
|
5
|
+
module ChefGemdir
|
|
6
|
+
def self.chef_gemdir(machine)
|
|
7
|
+
gemdir = nil
|
|
8
|
+
machine.communicate.tap do |comm|
|
|
9
|
+
return unless comm.test('test -f /opt/chef/embedded/bin/gem')
|
|
10
|
+
comm.execute '/opt/chef/embedded/bin/gem env gemdir' do |buffer, output|
|
|
11
|
+
gemdir = output.chomp if buffer == :stdout
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
return gemdir
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -6,6 +6,11 @@ module VagrantPlugins
|
|
|
6
6
|
Cap::Linux::Gemdir
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
+
guest_capability 'linux', 'chef_gemdir' do
|
|
10
|
+
require_relative 'cap/linux/chef_gemdir'
|
|
11
|
+
Cap::Linux::ChefGemdir
|
|
12
|
+
end
|
|
13
|
+
|
|
9
14
|
guest_capability 'linux', 'rvm_path' do
|
|
10
15
|
require_relative 'cap/linux/rvm_path'
|
|
11
16
|
Cap::Linux::RvmPath
|
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: 1.
|
|
4
|
+
version: 1.2.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:
|
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Caffeine reducer
|
|
14
14
|
email:
|
|
@@ -17,7 +17,7 @@ executables: []
|
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
|
-
- .gitignore
|
|
20
|
+
- ".gitignore"
|
|
21
21
|
- CHANGELOG.md
|
|
22
22
|
- Gemfile
|
|
23
23
|
- Gemfile.lock
|
|
@@ -34,6 +34,7 @@ files:
|
|
|
34
34
|
- docs/buckets/apt.md
|
|
35
35
|
- docs/buckets/bower.md
|
|
36
36
|
- docs/buckets/chef.md
|
|
37
|
+
- docs/buckets/chef_rubygems.md
|
|
37
38
|
- docs/buckets/composer.md
|
|
38
39
|
- docs/buckets/generic.md
|
|
39
40
|
- docs/buckets/npm.md
|
|
@@ -57,6 +58,7 @@ files:
|
|
|
57
58
|
- lib/vagrant-cachier/bucket/apt_lists.rb
|
|
58
59
|
- lib/vagrant-cachier/bucket/bower.rb
|
|
59
60
|
- lib/vagrant-cachier/bucket/chef.rb
|
|
61
|
+
- lib/vagrant-cachier/bucket/chef_gem.rb
|
|
60
62
|
- lib/vagrant-cachier/bucket/composer.rb
|
|
61
63
|
- lib/vagrant-cachier/bucket/gem.rb
|
|
62
64
|
- lib/vagrant-cachier/bucket/generic.rb
|
|
@@ -71,6 +73,7 @@ files:
|
|
|
71
73
|
- lib/vagrant-cachier/cap/debian/apt_lists_dir.rb
|
|
72
74
|
- lib/vagrant-cachier/cap/linux/bower_path.rb
|
|
73
75
|
- lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb
|
|
76
|
+
- lib/vagrant-cachier/cap/linux/chef_gemdir.rb
|
|
74
77
|
- lib/vagrant-cachier/cap/linux/composer_path.rb
|
|
75
78
|
- lib/vagrant-cachier/cap/linux/gemdir.rb
|
|
76
79
|
- lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
|
|
@@ -100,17 +103,17 @@ require_paths:
|
|
|
100
103
|
- lib
|
|
101
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
105
|
requirements:
|
|
103
|
-
- -
|
|
106
|
+
- - ">="
|
|
104
107
|
- !ruby/object:Gem::Version
|
|
105
108
|
version: '0'
|
|
106
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
110
|
requirements:
|
|
108
|
-
- -
|
|
111
|
+
- - ">="
|
|
109
112
|
- !ruby/object:Gem::Version
|
|
110
113
|
version: '0'
|
|
111
114
|
requirements: []
|
|
112
115
|
rubyforge_project:
|
|
113
|
-
rubygems_version: 2.
|
|
116
|
+
rubygems_version: 2.2.2
|
|
114
117
|
signing_key:
|
|
115
118
|
specification_version: 4
|
|
116
119
|
summary: Caffeine reducer
|