Class: Backup::Syncer::RSync::Base
- Defined in:
- lib/backup/syncer/rsync/base.rb
Instance Attribute Summary collapse
-
#additional_rsync_options ⇒ Object
Additional String or Array of options for the rsync cli.
Attributes inherited from Base
#excludes, #mirror, #path, #syncer_id
Instance Method Summary collapse
-
#initialize(syncer_id = nil, &block) ⇒ Base
constructor
A new instance of Base.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(syncer_id = nil, &block) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 |
# File 'lib/backup/syncer/rsync/base.rb', line 12 def initialize(syncer_id = nil, &block) super instance_eval(&block) if block_given? @path ||= '~/backups' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers
Instance Attribute Details
#additional_rsync_options ⇒ Object
Additional String or Array of options for the rsync cli
10 11 12 |
# File 'lib/backup/syncer/rsync/base.rb', line 10 def @additional_rsync_options end |