Sha256: 923fa371bcbe88cda53e2bc3f53a5cb0274ab672c237d3e1f2e6a85139cb8e8a

Contents?: true

Size: 862 Bytes

Versions: 4

Compression:

Stored size: 862 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 -o
			}
		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

4 entries across 4 versions & 1 rubygems

Version Path
forkcms_deploy-4.0.1 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-4.0.0 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.7.1 lib/forkcms_deploy/forkcms_3.4.rb
forkcms_deploy-2.7.0 lib/forkcms_deploy/forkcms_3.4.rb