Method: Backup::Syncer::Cloud::Base#initialize

Defined in:
lib/backup/syncer/cloud/base.rb

#initialize(syncer_id = nil, &block) ⇒ Base

Returns a new instance of Base.



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/backup/syncer/cloud/base.rb', line 29

def initialize(syncer_id = nil, &block)
  super
  instance_eval(&block) if block_given?

  @thread_count   ||= 0
  @max_retries    ||= 10
  @retry_waitsec  ||= 30

  @path ||= 'backups'
  @path = path.sub(/^\//, '')
end