mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-28 02:41:25 -04:00
17 lines
445 B
Ruby
17 lines
445 B
Ruby
namespace :paperclip do
|
|
|
|
desc "Create a storage folder for Paperclip attachment in shared path"
|
|
task :create_storage do
|
|
run "mkdir -p #{shared_path}/storage"
|
|
end
|
|
|
|
desc "Link the Paperclip storage folder into the current release"
|
|
task :link_storage do
|
|
run "ln -nfs #{shared_path}/storage #{release_path}/storage"
|
|
end
|
|
|
|
end
|
|
|
|
before "deploy:setup", 'paperclip:create_storage'
|
|
after "deploy:update_code", "paperclip:link_storage"
|