Module: MySQLDBTool
- Defined in:
- lib/mysql_db_tool.rb,
lib/mysql_db_tool/backup.rb,
lib/mysql_db_tool/restore.rb,
lib/mysql_db_tool/version.rb,
lib/mysql_db_tool/config/config_loader.rb
Overview
lib/mysql_db_tool/version.rb
Defined Under Namespace
Modules: Config Classes: Backup, Error, Restore
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.backup(options = {}) ⇒ Object
You might want to add methods to easily access your main functionalities.
- .find_resource(relative_path) ⇒ Object
- .restore(options = {}) ⇒ Object
Class Method Details
.backup(options = {}) ⇒ Object
You might want to add methods to easily access your main functionalities
11 12 13 14 15 |
# File 'lib/mysql_db_tool.rb', line 11 def self.backup( = {}) isRun = [:run] commands = Backup.new().perform commands.each { |command| run(isRun, command) } end |
.find_resource(relative_path) ⇒ Object
23 24 25 |
# File 'lib/mysql_db_tool.rb', line 23 def self.find_resource(relative_path) File.join(File.dirname(__FILE__), 'mysql_db_tool', relative_path) end |
.restore(options = {}) ⇒ Object
17 18 19 20 21 |
# File 'lib/mysql_db_tool.rb', line 17 def self.restore( = {}) isRun = [:run] commands = Restore.new().perform commands.each { |command| run(isRun, command) } end |