Permalink
Browse files

Remove the ability to copy of Composer between releases

  • Loading branch information...
piotrantosik authored and willdurand committed Mar 5, 2013
1 parent fb0c700 commit e88609258d654e88b307f10a18e408506efb5959
Showing with 1 addition and 8 deletions.
  1. +0 −7 lib/symfony2/symfony.rb
  2. +1 −1 spec/capifony_symfony2_symfony_spec.rb
View
@@ -29,7 +29,6 @@
capifony_pretty_print "--> Updating assets version (in config.yml)"
run "#{try_sudo} sed -i 's/\\(assets_version:[ ]*\\)\\([a-zA-Z0-9_]*\\)\\(.*\\)$/\\1#{real_revision[0,7]}\\3/g' #{latest_release}/#{app_config_path}/config.yml"
-
capifony_puts_ok
end
@@ -101,12 +100,6 @@
namespace :composer do
desc "Gets composer and installs it"
task :get, :roles => :app, :except => { :no_release => true } do
- if remote_file_exists?("#{previous_release}/composer.phar")
- capifony_pretty_print "--> Copying Composer from previous release"
- run "#{try_sudo} sh -c 'cp #{previous_release}/composer.phar #{latest_release}/'"
- capifony_puts_ok
- end
-
if !remote_file_exists?("#{latest_release}/composer.phar")
capifony_pretty_print "--> Downloading Composer"
@@ -192,7 +192,7 @@
end
it { should_not have_run('vendorDir=/var/www/current/vendor; if [ -d $vendorDir ] || [ -h $vendorDir ]; then cp -a $vendorDir /var/www/releases/20120927/vendor; fi;') }
- it { should have_run(' sh -c \'cp /var/www/releases/20120920/composer.phar /var/www/releases/20120927/\'') }
+ it { should_not have_run(' sh -c \'cp /var/www/releases/20120920/composer.phar /var/www/releases/20120927/\'') }
it { should_not have_run(' sh -c \'cd /var/www/releases/20120927 && curl -s http://getcomposer.org/installer | php\'') }
it { should have_run(' sh -c \'cd /var/www/releases/20120927 && php composer.phar self-update\'') }
it { should have_run(' sh -c \'cd /var/www/releases/20120927 && php composer.phar install --no-scripts --verbose --prefer-dist --optimize-autoloader\'') }

0 comments on commit e886092

Please sign in to comment.