Sha256: 6ecfeb084b96ae2157168306ac0c3d8ee111b49fa503a3e229b3a5b12c4ef958

Contents?: true

Size: 895 Bytes

Versions: 32

Compression:

Stored size: 895 Bytes

Contents

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

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 "rm -Rf #{shared_path}/log"
      run "rm -Rf #{shared_path}/pids"
      run "rm -Rf #{shared_path}/system"
      
      # create shared directories
      run "mkdir -p #{shared_path}/uploads"
      run "mkdir -p #{shared_path}/cache"

      # set correct permissions
      run "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/wordpress_shared_hosting.rb
capistrano-ash-1.1.12 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.11 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.10 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.8 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.7 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.6 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.5 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.4 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.3 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.2 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.1 lib/ash/wordpress_shared_hosting.rb