lib/capistrano/deploy.rb in blue-0.2.5 vs lib/capistrano/deploy.rb in blue-0.2.6

- old
+ new

@@ -6,11 +6,10 @@ namespace :blue do desc 'Apply the Blue manifest for this application' task :apply_manifest, :except => { :no_release => true } do current_host = capture("echo $CAPISTRANO:HOST$").strip.gsub('.', '_') # run "cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} sudo shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb" - # run "sudo su - 'cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb'" - sudo "cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb" + run "sudo su - 'cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb'" end task :verify_db do run "cd #{latest_release} && RAILS_ENV=#{Blue.env} bundle exec rails runner 'ActiveRecord::Base.connection.execute %q!SELECT 1=1!'" end