Sha256: 8ed13ffafde0097ac223140401890eeabe211ae3d1123e0a3b12cd4f98c2c6ea

Contents?: true

Size: 556 Bytes

Versions: 8

Compression:

Stored size: 556 Bytes

Contents

namespace :sumo do
  namespace :files do
    desc 'Uploads the local files to the remote server'
    task :put do
      on roles(:web) do
        fetch(:files_dir).each do |path|
          upload! path, "#{current_path}/#{File.dirname(path)}", recursive: true
        end
      end
    end

    desc 'Downloads the remote files to the local instance'
    task :get do
      on roles(:web) do
        fetch(:files_dir).each do |path|
          download! "#{current_path}/#{path}", File.dirname(path), recursive: true
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capistrano-sumo-1.4.2 lib/capistrano/tasks/files.rake
capistrano-sumo-1.4.1 lib/capistrano/tasks/files.rake
capistrano-sumo-1.4.0 lib/capistrano/tasks/files.rake
capistrano-sumo-1.3.1 lib/capistrano/tasks/files.rake
capistrano-sumo-1.3.0 lib/capistrano/tasks/files.rake
capistrano-sumo-1.2.0 lib/capistrano/tasks/files.rake
capistrano-sumo-1.1.2 lib/capistrano/tasks/files.rake
capistrano-sumo-1.1.1 lib/capistrano/tasks/files.rake