Sha256: 4f9abe4434795e79c911bd162eea1fb3f9c3014909639b76bac539ab7c0f7c43

Contents?: true

Size: 886 Bytes

Versions: 32

Compression:

Stored size: 886 Bytes

Contents

# Require our base drupal library
require 'ash/zend_doctrine'

configuration = Capistrano::Configuration.respond_to?(:instance) ?
  Capistrano::Configuration.instance(:must_exist) :
  Capistrano.configuration(:must_exist)

configuration.load do
  # --------------------------------------------
  # Overloaded Methods
  # --------------------------------------------
  namespace :deploy do
    desc<<-DESC
      Setup shared directories and permissions after initial setup \
      for a shared hosting enviroment
    DESC
    task :setup_shared, :roles => :web, :except => { :no_release => true } do
      run "mkdir -p #{shared_path}/var"
      run "mkdir -p #{shared_path}/var/logs"
      run "mkdir -p #{shared_path}/var/cache"
      run "mkdir -p #{shared_path}/var/sessions"
      run "mkdir -p #{shared_path}/system"
      try_sudo "chmod -R 755 #{shared_path}/*"
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
capistrano-ash-1.1.13 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.12 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.11 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.10 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.8 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.7 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.6 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.5 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.4 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.3 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.2 lib/ash/zend_doctrine_shared_hosting.rb
capistrano-ash-1.1.1 lib/ash/zend_doctrine_shared_hosting.rb