Class: Backup::Syncer::RSync::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/syncer/rsync/base.rb

Direct Known Subclasses

Local, Push

Constant Summary

Constants included from CLI::Helpers

CLI::Helpers::UTILITY

Instance Attribute Summary collapse

Attributes inherited from Base

#directories, #mirror, #path

Instance Method Summary collapse

Methods inherited from Base

#add

Methods included from Configuration::Helpers

#clear_defaults!, #load_defaults!

Methods included from CLI::Helpers

#command_name, #raise_if_command_failed!, #run, #utility

Constructor Details

#initializeBase

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_optionsObject

Additional options for the rsync cli



9
10
11
# File 'lib/backup/syncer/rsync/base.rb', line 9

def additional_options
  @additional_options
end