vagrant-spatula 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +5 -0
  2. data/lib/vagrant/spatula.rb +8 -1
  3. metadata +4 -6
@@ -1,3 +1,8 @@
1
+ === 0.0.3 / 2011-05-10
2
+
3
+ * Log processing
4
+ * better error handling.
5
+
1
6
  === 0.0.2 / 2011-03-13
2
7
 
3
8
  * Fix dependencies
@@ -1,8 +1,9 @@
1
1
  class SpatulaProvisioner < Vagrant::Provisioners::Base
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
 
4
4
  class Config < Vagrant::Config::Base
5
5
  attr_accessor :node
6
+ attr_accessor :log_level
6
7
  end
7
8
 
8
9
  def provision!
@@ -20,7 +21,13 @@ class SpatulaProvisioner < Vagrant::Provisioners::Base
20
21
  args = [@spatula_path] + %w[prepare vagrant@localhost] + extra_args
21
22
  system(*args)
22
23
 
24
+ raise "Could not prepare the host" unless $?.exitstatus == 0
25
+
26
+ extra_args += %W[--log-level #{config.log_level || 'info'}]
27
+
23
28
  args = [@spatula_path] + %W[cook vagrant@localhost #{config.node}] + extra_args
24
29
  system(*args)
30
+
31
+ raise "Could not cook the host" unless $?.exitstatus == 0
25
32
  end
26
33
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vagrant-spatula
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Erik Hollensbe
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-12 23:00:00 -05:00
14
- default_executable:
13
+ date: 2011-05-11 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: vagrant
@@ -43,7 +42,7 @@ dependencies:
43
42
  requirements:
44
43
  - - ">="
45
44
  - !ruby/object:Gem::Version
46
- version: 2.9.1
45
+ version: 2.9.4
47
46
  type: :development
48
47
  version_requirements: *id003
49
48
  description: |-
@@ -67,7 +66,6 @@ files:
67
66
  - Rakefile
68
67
  - lib/vagrant/spatula.rb
69
68
  - .gemtest
70
- has_rdoc: true
71
69
  homepage: http://github.com/erikh/vagrant-spatula
72
70
  licenses: []
73
71
 
@@ -92,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
90
  requirements: []
93
91
 
94
92
  rubyforge_project:
95
- rubygems_version: 1.6.2
93
+ rubygems_version: 1.7.2
96
94
  signing_key:
97
95
  specification_version: 3
98
96
  summary: Vagrant Spatula uses the excellent 'spatula' gem and command-line utility to provision new base boxes with chef-solo, including getting chef-solo on the machine itself.