Method: Fulmar::Infrastructure::Model::Transfer::RsyncWithVersions#initialize
- Defined in:
- lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb
#initialize(config) ⇒ RsyncWithVersions
Returns a new instance of RsyncWithVersions.
36 37 38 39 40 41 42 43 44 |
# File 'lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb', line 36 def initialize(config) @config = config @config.merge(DEFAULT_CONFIG) super(@config) if @config[:rsync][:exclude_file].blank? && File.exist?(@config[:local_path] + '/.rsyncignore') @config[:rsync][:exclude_file] = @config[:local_path] + '/.rsyncignore' end end |