Sha256: a7aa31079efb0383b66b25ea2069c94cea24f59c1e09bd4cc2543546d0daf42c

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require 'dk-dumpdb/task/internal_task'

module Dk::Dumpdb::Task

  class Teardown
    include Dk::Dumpdb::Task::InternalTask

    desc "(dk-dumpdb) teardown a script run"

    def run!
      source_cmd!(params['script'].dump_cmd{ "rm -rf #{source.output_dir}" })
      target_cmd!(params['script'].restore_cmd{ "rm -rf #{target.output_dir}" })
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dk-dumpdb-0.1.0 lib/dk-dumpdb/task/teardown.rb