module Mongodump::Restore

Public Class Methods

process(path) click to toggle source

Restore the mongo database

  • path <String>

  • appname <String>

# File lib/mongodump/restore.rb, line 8
def self.process(path)
  cmd = @@restore_command
  cmd << " -h localhost"
  cmd << " #{path} "
  Display.info("Restoring mongo database...")
  Display.info(cmd)

  # Execute cmd
  system(cmd)

  Display.success("Restoration OK.")      
end