Class: Backup::Syncer::RSync::Base
- Defined in:
- lib/backup/syncer/rsync/base.rb
Constant Summary
Constants included from CLI::Helpers
Instance Attribute Summary collapse
-
#additional_options ⇒ Object
Additional options for the rsync cli.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
Instantiates a new RSync Syncer object and sets the default configuration.
Methods inherited from Base
Methods included from Configuration::Helpers
#clear_defaults!, #load_defaults!
Methods included from CLI::Helpers
#command_name, #raise_if_command_failed!, #run, #utility
Constructor Details
#initialize ⇒ Base
Instantiates a new RSync Syncer object and sets the default configuration
14 15 16 17 18 19 20 21 |
# File 'lib/backup/syncer/rsync/base.rb', line 14 def initialize load_defaults! @path ||= 'backups' @directories = Array.new @mirror ||= false @additional_options ||= Array.new end |
Instance Attribute Details
#additional_options ⇒ Object
Additional options for the rsync cli
9 10 11 |
# File 'lib/backup/syncer/rsync/base.rb', line 9 def @additional_options end |