vagrant-librarian-chef 0.0.1 → 0.0.2
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/README.md +1 -4
- data/lib/vagrant-librarian-chef/action/librarian_chef.rb +8 -5
- data/lib/vagrant-librarian-chef/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3497ada011a5d5276259eaf6f14a21798da85618
|
|
4
|
+
data.tar.gz: 9fe602c0e7e23abad49fe0195274434afbef8cdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf61da57ea8822c5111d45030b2738c4cda6c31c8c969ab654d4c18df42e5db8df7c13d8f20d810b7ee8a561c2ae478652c15c1e57657f215cf4a83a3dc43d2e
|
|
7
|
+
data.tar.gz: da19c2e14e8693701e763eebadcbe6628aea27d8b8eb01995658d497b8d1b22bdeeed61873a832c01c7758cbee9279c605bb3220f5b84a053eccfe990d1f630b
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A [Vagrant](http://www.vagrantup.com/) plugin to install [Chef](http://www.opsco
|
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
* Vagrant version 1.
|
|
7
|
+
* Vagrant version 1.2.0 or greater.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -20,12 +20,9 @@ Vagrant will automatically run Librarian-Chef before any provisioning step, so s
|
|
|
20
20
|
|
|
21
21
|
``` bash
|
|
22
22
|
bundle
|
|
23
|
-
mkdir cookbooks
|
|
24
23
|
bundle exec vagrant up
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
The cookbooks directory must be present or the Vagrantfile will fail to validate. It's not checked into version control because its contents (including any potential .gitkeep file) are removed by Librarian-Chef during its execution.
|
|
28
|
-
|
|
29
26
|
## Acknowledgements
|
|
30
27
|
|
|
31
28
|
Thank you to @thegcat and other contributors for their work on [vagrant-librarian](https://github.com/thegcat/vagrant-librarian), an earlier version of this functionality for Vagrant 1.0.x and the original Librarian gem with integrated Librarian-Chef.
|
|
@@ -10,11 +10,14 @@ module VagrantPlugins
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def call(env)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
# look for a Cheffile in the Vagrant root_path
|
|
14
|
+
if FileTest.exist?(env[:root_path] + "Cheffile")
|
|
15
|
+
env[:ui].info "Installing Chef cookbooks with Librarian-Chef..."
|
|
16
|
+
environment = Librarian::Chef::Environment.new
|
|
17
|
+
Librarian::Action::Ensure.new(environment).run
|
|
18
|
+
Librarian::Action::Resolve.new(environment).run
|
|
19
|
+
Librarian::Action::Install.new(environment).run
|
|
20
|
+
end
|
|
18
21
|
@app.call(env)
|
|
19
22
|
end
|
|
20
23
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-librarian-chef
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jimmy Cuadra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: librarian-chef
|