lib/ms_deploy/recipes/defaults.rb in ms_deploy-0.3.5 vs lib/ms_deploy/recipes/defaults.rb in ms_deploy-0.3.6

- old
+ new

@@ -6,11 +6,11 @@ set :use_sudo, false set :protocol, :both set :scm, :git - set :git_enable_submodules, true + set :git_enable_submodules, false # set deployment strategy set :deploy_via, :remote_cache set :copy_exclude, %w(.git .svn .DS_Store test doc .gitkeep) #_cset :repository_cache, "cached-copy" # defaults to :shared_path + 'cached-copy/' @@ -51,13 +51,10 @@ colorize(capistrano_color_matchers) #Dynamically skip Capistrano hooks example # before 'deploy:update_code', 'db:dump' unless fetch(:skip_dump, false) # $ cap staging deploy -S skip_dump=true - - set :group, user - set :admin_runner, user end before 'deploy', 'test_and_prepare_cap_env' before 'deploy:migrations', 'test_and_prepare_cap_env' after 'deploy:update', 'deploy:cleanup' @@ -65,10 +62,10 @@ desc "Show currently deployed revision on server." task :revisions, :roles => :app do current, previous, latest = current_revision[0, 7], previous_revision[0, 7], real_revision[0, 7] puts "\n" << "-"*63 puts "===== Master Revision: \033[1;33m#{latest}\033[0m\n\n" - puts "===== [ \033[1;36m#{application.capitalize} - #{stage.capitalize}\033[0m ]" + puts "===== [ \033[1;36m#{application.capitalize} - #{stage.to_s.capitalize}\033[0m ]" puts "=== Deployed Revision: \033[1;32m#{current}\033[0m" puts "=== Previous Revision: \033[1;32m#{previous}\033[0m\n\n" # If deployed and master are the same, show the difference between the last 2 deployments. base_label, new_label, base_rev, new_rev = latest != current ? \