Sha256: ab46a604fea10c5df4fbae4146c2ac3f30bf76d0575b6d4c74735eed10fd88fb

Contents?: true

Size: 568 Bytes

Versions: 5

Compression:

Stored size: 568 Bytes

Contents

# copy config files
namespace :deploy do
  desc 'Copy files from application to shared directory'
  ## copy the files to the shared directories
  task :copy_config_files do
    on roles(:app) do
      # create dirs
      fetch(:config_dirs).each do |dirname|
        path = File.join shared_path, dirname
        execute "mkdir -p #{path}"
      end

      # copy config files
      fetch(:config_files).each do |filename|
        remote_path = File.join shared_path, filename
        upload! filename, remote_path
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
optimacms-0.3.35 tasks/capistrano/config_files.rake
optimacms-0.3.34 tasks/capistrano/config_files.rake
optimacms-0.3.30 tasks/capistrano/config_files.rake
optimacms-0.3.29 tasks/capistrano/config_files.rake
optimacms-0.3.23 tasks/capistrano/config_files.rake