Sha256: ebfad21157b78a300bfffd30b4b5b8892699e070b1a5abe5d1a006bf8d389bdb

Contents?: true

Size: 916 Bytes

Versions: 10

Compression:

Stored size: 916 Bytes

Contents

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

configuration.load do
	set :shared_children, %w(files config install)

	# Fork CMS specific tasks
	namespace :forkcms do
		desc 'Link the config files'
		task :link_configs do

			# change the path to current_path
			run "if [ -f #{shared_path}/config/parameters.yml ]; then sed -i 's/#{version_dir}\\/[0-9]*/#{current_dir}/' #{shared_path}/config/parameters.yml; fi"
			run "if [ ! -f #{shared_path}/install/installed.txt ]; then touch #{shared_path}/install/installed.txt; fi"

			# symlink the parameters
			run %{
				ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml &&
				ln -sf #{shared_path}/install/installed.txt #{release_path}/install/cache/installed.txt
			}
		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
forkcms_deploy-4.5.0 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.4.6 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.4.5 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.4.4 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.4.3 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.4.2 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.4.1 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.2.0 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.1.0 lib/forkcms_deploy/forkcms_3.5.rb
forkcms_deploy-4.0.1 lib/forkcms_deploy/forkcms_3.5.rb