Class: CopyBot::Steps::DeleteRemoteDbDump
- Defined in:
- lib/copy_bot/steps/delete_remote_db_dump.rb
Instance Attribute Summary
Attributes inherited from BaseStep
Instance Method Summary collapse
Methods inherited from BaseStep
Constructor Details
This class inherits a constructor from CopyBot::Steps::BaseStep
Instance Method Details
#run ⇒ String
5 6 7 8 9 10 11 |
# File 'lib/copy_bot/steps/delete_remote_db_dump.rb', line 5 def run return @message = 'Missing remote DB dump file' unless remote_db_dump_file_valid? File.delete(remote_db_dump_file_path) @success = true @message = "Deleted file #{remote_db_dump_file_path}" end |