Sha256: add227ac32dba204145bccb06143cc4a3403017f46ef98a8709fea0497491860

Contents?: true

Size: 701 Bytes

Versions: 5

Compression:

Stored size: 701 Bytes

Contents

class RemoteCacheSubdir < Capistrano::Deploy::Strategy::RemoteCache
  private

  def repository_cache_subdir
    if configuration[:deploy_subdir] then
      File.join(repository_cache, configuration[:deploy_subdir])
    else
      repository_cache
    end
  end

  def copy_repository_cache
    logger.trace "copying the cached version to #{configuration[:release_path]}"
    if copy_exclude.empty?
      run "cp -RPp #{repository_cache_subdir} #{configuration[:release_path]} && #{mark}"
    else
      exclusions = copy_exclude.map { |e| "--exclude=\"#{e}\"" }.join(' ')
      run "rsync -lrpt #{exclusions} #{repository_cache_subdir}/* #{configuration[:release_path]} && #{mark}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mana-0.0.10 lib/mana/remote_cache_subdir.rb
mana-0.0.8 lib/mana/remote_cache_subdir.rb
mana-0.0.7 lib/mana/remote_cache_subdir.rb
mana-0.0.6 lib/mana/remote_cache_subdir.rb
mana-0.0.5 lib/mana/remote_cache_subdir.rb