Module: DatedBackup::Core::CommandLine
- Included in:
- DatedBackup::Core, BackupRemover
- Defined in:
- lib/dated_backup/core/command_line.rb
Instance Method Summary collapse
Instance Method Details
#execute(cmd, kernel_class = Kernel) ⇒ Object
4 5 6 7 8 |
# File 'lib/dated_backup/core/command_line.rb', line 4 def execute(cmd, kernel_class=Kernel) kernel_class.puts "* running: #{cmd}" output = kernel_class.send :`, cmd kernel_class.puts output end |