Sha256: 435e4f4ef5a4b5e285134d0a9bf0510ccda8eda73613a796ce653db6256f8ba3

Contents?: true

Size: 919 Bytes

Versions: 8

Compression:

Stored size: 919 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 do
      # remove Capistrano specific directories
      run "rm -Rf #{shared_path}/log"
      run "rm -Rf #{shared_path}/pids"
      run "rm -Rf #{shared_path}/system"

      # 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
      set_perms_dirs("#{shared_path}")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capistrano-ash-1.3.1 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.3.0 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.2.4 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.2.3 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.2.2 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.2.1 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.2.0 lib/ash/drupal_shared_hosting.rb
capistrano-ash-1.1.19 lib/ash/drupal_shared_hosting.rb