Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make install ruby more similar to install_chef. allow user to opt out…

… of the checks
  • Loading branch information...
commit 074c15ce31554c994adad1c37ac0b325de49ad1c 1 parent fe5eb08
@kbrock kbrock authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/roundsman/capistrano.rb
View
5 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
@@ -183,7 +184,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
Please sign in to comment.
Something went wrong with that request. Please try again.