Module: Backup::CommandHelper

Included in:
Adapters::Base, Record::Local, Storage::Base
Defined in:
lib/backup/command_helper.rb

Instance Method Summary collapse

Instance Method Details

#log(command) ⇒ Object



7
8
9
# File 'lib/backup/command_helper.rb', line 7

def log(command)
  puts "Backup (#{Time.now.strftime("%Y-%m-%d %H:%M:%S %Z")}) => #{command}"
end

#run(command) ⇒ Object



3
4
5
# File 'lib/backup/command_helper.rb', line 3

def run(command)
  Kernel.system command
end