Sha256: 0e258f6ba69ba1f3b7c53ce984018123f4bf40fb330465da6abdbaffdd454067
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
class LogBackupDriver < CloudBackup::Driver def initialize stream @stream = stream end def initiate output 'Initiating execution' end def list_by_date output 'Listing driver items by date' list.each do |file| output "Listing.. file: #{file}" end @list ||= list end def remove name @list = @list - [name] output "Removing item: #{name}" end def upload list.each do |file| output "Uploading.. file: #{file}" end end def terminate output 'Terminating execution' end private def output data @stream.puts data end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloud-backup-0.0.2 | lib/drivers/log_backup_driver.rb |