lib/ms_deploy/recipes/defaults.rb in ms_deploy-0.2.3 vs lib/ms_deploy/recipes/defaults.rb in ms_deploy-0.2.4
- old
+ new
@@ -1,7 +1,9 @@
Capistrano::Configuration.instance.load do
+ require File.expand_path("#{File.dirname(__FILE__)}/../../util")
+
set :keep_releases, 10
set :use_sudo, false
set :protocol, :both
@@ -18,11 +20,13 @@
# In your /etc/ssh/ssh_config or ~/.ssh/config you need to have ForwardAgent enabled for this to work.
set :ssh_options, {:port => fetch(:ssh_port, 22), :forward_agent => true, :paranoid => true}
default_run_options[:pty] = true
+ # if you want to remove the dump file after loading
+ set :db_local_clean, true
+
task :test_and_prepare_cap_env do
- abort "You must run this using 'bundle exec ...'" unless ENV['BUNDLE_BIN_PATH'] || ENV['BUNDLE_GEMFILE']
abort "You must set :user before using defaults" unless fetch(:user, nil)
abort "You must set :repository before using defaults" unless fetch(:repository, nil)
abort "You must set :branch before using defaults" unless fetch(:branch, nil)
abort "You must set :deploy_to before using defaults" unless fetch(:deploy_to, nil)