lib/negroku/deploy.rb in negroku-1.1.14 vs lib/negroku/deploy.rb in negroku-2.0.0.pre1

- old
+ new

@@ -1,39 +1,17 @@ -## -# Load Deployer Helpers -require File.join(File.dirname(__FILE__), 'helpers') +# Base configuration +set :scm, :git -# Base settings -set :scm, 'git' -set :deploy_via, :remote_cache -set :use_sudo, false +# set :format, :pretty +# set :log_level, :debug +set :pty, true -## -# Default Configuration -set :remote, 'origin' unless respond_to?(:remote) -set :branch, 'master' unless respond_to?(:branch) +set :keep_releases, 5 -# Default environment -set :rails_env, 'production' unless respond_to?(:rails_env) - -## Default path -set :default_environment, { - 'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$HOME/.nodenv/shims:$HOME/.nodenv/bin:$PATH" -} - -# Run on Linux: `$ ssh-add` or on OSX: `$ ssh-add -K` for "forward_agent". -ssh_options[:forward_agent] = true -ssh_options[:port] = 22 -default_run_options[:pty] = true - -# Use the bundler capistrano task to deploy to the shared folder -require "bundler/capistrano" -set :bundle_flags, "--deployment --binstubs" - -## -# Load Deployment Tasks -load_tasks('base') -load_tasks('log') -load_tasks('rbenv') -load_tasks('bower') -load_tasks('nginx') -load_tasks('unicorn') +require 'negroku/helpers' +load_task "negroku" +load_task "rbenv" if was_required? 'capistrano/rbenv' +load_task "nodenv" if was_required? 'capistrano/nodenv' +load_task "bower" if was_required? 'capistrano/bower' +load_task "bundler" if was_required? 'capistrano/bundler' +load_task "nginx" if was_required? 'capistrano/nginx' +load_task "unicorn" if was_required? 'capistrano3/unicorn'