Sha256: daa9429f77ec1ecd6a5acef8e4c0591102608a30fbf6a2cd276703c86f571977

Contents?: true

Size: 449 Bytes

Versions: 26

Compression:

Stored size: 449 Bytes

Contents

Capistrano::Configuration.instance.load do
  before "deploy:setup", "kuhsaft:setup"
  after "deploy:update_code", "kuhsaft:symlink"

  namespace :kuhsaft do
    desc "Create uploads directory in capistrano shared path"
    task :setup do
      run "mkdir -p #{shared_path}/uploads"
    end

    desc "Make symlink for shared uploads"
    task :symlink do
      run "ln -nfs #{shared_path}/uploads #{latest_release}/public/uploads"
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
capones_recipes-1.12.0 lib/capones_recipes/tasks/kuhsaft/kuhsaft.rb
capones_recipes-1.11.6 lib/capones_recipes/tasks/kuhsaft/kuhsaft.rb
capones_recipes-1.11.5 lib/capones_recipes/tasks/kuhsaft/kuhsaft.rb
capones_recipes-1.11.4 lib/capones_recipes/tasks/kuhsaft/kuhsaft.rb
capones_recipes-1.11.3 lib/capones_recipes/tasks/kuhsaft/kuhsaft.rb
capones_recipes-1.11.2 lib/capones_recipes/tasks/kuhsaft/kuhsaft.rb