Sha256: 6ba6f8a96d59f43bf95f9a14c15787307efe43ff0e6804a3699127327f19d670

Contents?: true

Size: 858 Bytes

Versions: 8

Compression:

Stored size: 858 Bytes

Contents

require "forkcms_deploy/forkcms_3"
configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)

configuration.load do
	after 'deploy:update_code' do
		composer.install_vendors
	end

	# composer specific tasks
	namespace :composer do
		desc 'Install the vendors'
		task :install_vendors do
			composer.install_composer
			run %{
				cd #{latest_release} &&
				php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC' #{shared_path}/composer.phar install
			}
		end

		desc 'Install composer'
		task :install_composer do
			run %{
				if [ ! -e #{shared_path}/composer.phar ]; then cd #{shared_path}; curl -ks https://getcomposer.org/installer | php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC'; fi
			}
		end
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
forkcms_deploy-2.6.1 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.6.0 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.5.0 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.4.2 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.4.1 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.4.0 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.3.0 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.2.0 lib/forkcms_deploy/forkcms_3.4.rb