lib/ms_deploy/recipes/defaults.rb in ms_deploy-0.1.7 vs lib/ms_deploy/recipes/defaults.rb in ms_deploy-0.1.8
- old
+ new
@@ -1,24 +1,24 @@
Capistrano::Configuration.instance.load do
- _cset :keep_releases, 10
- _cset :use_sudo, false
+ set :keep_releases, 10
+ set :use_sudo, false
- _cset :protocol, :both
+ set :protocol, :both
- _cset :scm, :git
- _cset :git_enable_submodules, true
+ set :scm, :git
+ set :git_enable_submodules, true
# set deployment strategy
- _cset :deploy_via, :remote_cache
- _cset :copy_exclude, %w(.git .svn .DS_Store test doc .gitkeep)
+ 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/'
# :forward_agent allows us to avoid using and distributing a deploy key.
# On problems run 'ssh-add' locally
# In your /etc/ssh/ssh_config or ~/.ssh/config you need to have ForwardAgent enabled for this to work.
- _cset :ssh_options, {:port => fetch(:ssh_port, 22), :forward_agent => true, :paranoid => true}
+ set :ssh_options, {:port => fetch(:ssh_port, 22), :forward_agent => true, :paranoid => true}
default_run_options[:pty] = true
task :test_and_prepare_cap_env do
abort "You must run this using 'bundle exec ...'" unless ENV['BUNDLE_BIN_PATH'] || ENV['BUNDLE_GEMFILE']
@@ -52,10 +52,9 @@
set :group, user
end
before 'deploy', 'test_and_prepare_cap_env'
- before 'deploy:setup', 'deploy:prepare:database';
after 'deploy:update', 'deploy:cleanup'
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]