Sha256: ce08e6a72706f26b493b5b718beaec21ae9df0446d099f761ec2a6bb73cdc2d4
Contents?: true
Size: 661 Bytes
Versions: 10
Compression:
Stored size: 661 Bytes
Contents
require "forkcms_deploy/forkcms_3.7" configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do # 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" # symlink the parameters run %{ ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml } end end end
Version data entries
10 entries across 10 versions & 1 rubygems