# File lib/puppet/util/backups.rb, line 5 5: def perform_backup(file = nil) 6: # if they specifically don't want a backup, then just say 7: # we're good 8: return true unless self[:backup] 9: 10: # let the path be specified 11: file ||= self[:path] 12: return true unless FileTest.exists?(file) 13: 14: return perform_backup_with_bucket(file) if self.bucket 15: return perform_backup_with_backuplocal(file, self[:backup]) 16: end