Object
Flag for mirroring the files/directories
Path to store the synced files/directories to
# File lib/backup/syncer/base.rb, line 16 def initialize load_defaults! @path ||= 'backups' @mirror ||= false @directories = Array.new end
Adds a path to the @directories array
# File lib/backup/syncer/base.rb, line 33 def add(path) @directories << path end
Syntactical suger for the DSL for adding directories
# File lib/backup/syncer/base.rb, line 26 def directories(&block) return @directories unless block_given? instance_eval(&block) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.