Permalink
Browse files

Merge pull request #10 from ping4/skip_ruby_checks

skip chef/ruby checks
  • Loading branch information...
2 parents 5ebdf70 + 074c15c commit bc992accc877c363977599957ae147f69e5bd1c9 @Arie Arie committed Jan 16, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/roundsman/capistrano.rb
@@ -8,7 +8,7 @@
def run_list(*recipes)
if recipes.any?
set :run_list, recipes
- install_ruby
+ install_ruby if fetch(:run_roundsman_checks, true) && install_ruby?
run_chef
else
Array(fetch(:run_list))
@@ -48,6 +48,7 @@ def run(*args)
set_default(:roundsman_user) { fetch(:user) { capture('whoami').strip } }
set_default :debug_chef, false
set_default :package_manager, 'apt-get'
+ set_default :run_roundsman_checks, true
desc "Lists configuration"
task :configuration do
@@ -184,7 +185,7 @@ def install_ruby?
desc "Generates the config and copies over the cookbooks to the server"
task :prepare_chef, :except => { :no_release => true } do
- install if install_chef?
+ install if fetch(:run_roundsman_checks, true) && install_chef?
ensure_cookbooks_exists
generate_config
generate_attributes

0 comments on commit bc992ac

Please sign in to comment.