chef_cap 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ChefCap
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/recipes/chef_cap.rb CHANGED
@@ -190,7 +190,8 @@ namespace :chef do
190
190
  end
191
191
 
192
192
  task :run_chef_solo do
193
- run_chef_solo = "env PATH=$PATH:/usr/sbin rvm default exec chef-solo -c /tmp/chef-cap-solo-#{rails_env}.rb -j /tmp/chef-cap-#{rails_env}-`hostname`.json #{ENV['DEBUG'] ? '-l debug' : ''}"
193
+ debug_flag = ENV['QUIET'] ? '' : '-l debug'
194
+ run_chef_solo = "env PATH=$PATH:/usr/sbin rvm default exec chef-solo -c /tmp/chef-cap-solo-#{rails_env}.rb -j /tmp/chef-cap-#{rails_env}-`hostname`.json #{debug_flag}"
194
195
 
195
196
  unless role_order.empty?
196
197
  role_order.each do |role, dependent_roles|
@@ -1,7 +1,7 @@
1
1
  class ChefCapHelper
2
2
  class << self
3
3
  def debug(message)
4
- puts "** #{message}" if ENV["DEBUG"]
4
+ puts "** #{message}" unless ENV["QUIET"]
5
5
  end
6
6
 
7
7
  def parse_hash(hash, prefix = nil)
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,8 @@ require "rubygems"
2
2
  require "rspec"
3
3
  require "json"
4
4
 
5
+ ENV["QUIET"] = "true"
6
+
5
7
  require File.expand_path(File.join(File.dirname(__FILE__), "..", "recipes", "lib", "chef_dna_parser"))
6
8
  require File.expand_path(File.join(File.dirname(__FILE__), "..", "recipes", "lib", "chef_cap_helper"))
7
9
  require File.expand_path(File.join(File.dirname(__FILE__), "..", "recipes", "lib", "chef_cap_configuration"))
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 7
9
- version: 0.1.7
8
+ - 8
9
+ version: 0.1.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Case Commons, LLC
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-07 00:00:00 -05:00
17
+ date: 2011-03-09 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency