Sha256: 01bbe9d397295bc5b0cf0a1ca4f5fbf10d66a7f017fe8ab8e5d74dc1c7f05879
Contents?: true
Size: 681 Bytes
Versions: 19
Compression:
Stored size: 681 Bytes
Contents
# encoding: utf-8 module Mutx module Commands def self.reset Mutx::Support::Log.debug "#{self}:#{__method__}" if Mutx::Support::Log begin Mutx::Support::Configuration.get Mutx::Database::MongoConnector.new(Mutx::Support::Configuration.db_connection_data) print "\nCleanning database..." Mutx::Database::MongoConnector.drop_collections print "Done!\n\n" print "\nCleanning project..." Mutx::Support::FilesCleanner.start! print "Done!\n\n" Mutx::Database::MongoConnector.force_close rescue => e puts "CANNOT CLEAN SYSTEM\n#{e}\n\n#{e.backtrace}" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems