skcc321/dumpman

View on GitHub
lib/dumpman/comandor.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
84%
module Dumpman
  module Commandor
    extend self

    def dump
      Dumpman::Database.dump
    end

    def restore
      Dumpman::Database.drop
      Dumpman::Database.create
      Dumpman::Database.restore
    end

    def drop_db
      Dumpman::Database.drop
    end

    def create_db
      Dumpman::Database.create
    end
  end
end