Class: SimpleBackup::Source::File
- Defined in:
- lib/simple_backup/source/file.rb
Instance Method Summary collapse
Methods inherited from Abstract
#backends=, #backup_file, #cleanup, #desc, #get, #keep_last, #keep_last=, #name, #name=, #supports, #type
Instance Method Details
#configure(path, options = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/simple_backup/source/file.rb', line 4 def configure(path, = {}) @path = path raise "#{path} is a directory - use Dir source instead of File" unless !::File.exist?(path) or ::File.file?(path) end |