Sha256: 3a866c2bc8edafe56f56d06c11b693f16e8d81c7c86ac6883870d5c45216e69a
Contents?: true
Size: 958 Bytes
Versions: 1
Compression:
Stored size: 958 Bytes
Contents
# Require our base drupal library require 'ash/drupal' configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do # -------------------------------------------- # Overloaded Methods # -------------------------------------------- namespace :deploy do desc "Setup shared application directories and permissions after initial setup" task :setup_shared, :roles => :web do # remove Capistrano specific directories run<<-CMD rm -Rf #{shared_path}/log && rm -Rf #{shared_path}/pids && rm -Rf #{shared_path}/system CMD # create shared directories multisites.each_pair do |folder, url| run "mkdir -p #{shared_path}/#{url}/files" end # set correct permissions for a shared hosting environment run "chmod -R 755 #{shared_path}/*" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-ash-1.1.0 | lib/ash/drupal_shared_hosting.rb |