vagrant-librarian-chef 0.0.1 → 0.0.2

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: e0ae676570d2583e8a28ed5c07ae577309f8d647
4
- data.tar.gz: d8bf30546f5efebee351ba2042621945f75b8ed7
3
+ metadata.gz: 3497ada011a5d5276259eaf6f14a21798da85618
4
+ data.tar.gz: 9fe602c0e7e23abad49fe0195274434afbef8cdd
5
5
  SHA512:
6
- metadata.gz: 118afa7569fc0a398b2a781c2c0cbf282062686ec0151850b5f8598b241767842291ed816af2b038d350713e24b55fc7e3810b0172096b79d67266897f5f33f0
7
- data.tar.gz: adc21cb1821eb368395f8ba1999372eaae53f5692e17e14e589d648c9eb5586d95d800bc743ae393a957375e0d7efd2b6b0ddc80bb3bb23c6e3f86dc6ef2053b
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.1 or greater.
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
- env[:ui].info "Installing Chef cookbooks with Librarian-Chef..."
14
- environment = Librarian::Chef::Environment.new
15
- Librarian::Action::Ensure.new(environment).run
16
- Librarian::Action::Resolve.new(environment).run
17
- Librarian::Action::Install.new(environment).run
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module LibrarianChef
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  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.1
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-04-10 00:00:00.000000000 Z
11
+ date: 2013-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: librarian-chef