Module: MysqlBackup

Defined in:
lib/mysql_backup/pty.rb,
lib/mysql_backup.rb,
lib/mysql_backup/backup.rb,
lib/mysql_backup/install.rb,
lib/mysql_backup/options.rb

Overview

require ‘ruby-debug’

Defined Under Namespace

Classes: Backup, Install, Options, Pty

Constant Summary collapse

CONF_FILE =
'/etc/mysql_backup'

Class Method Summary collapse

Class Method Details

.installObject



28
29
30
# File 'lib/mysql_backup.rb', line 28

def self.install
  Install.install
end

.optionsObject



24
25
26
# File 'lib/mysql_backup.rb', line 24

def self.options
  Options.options
end

.runObject



20
21
22
# File 'lib/mysql_backup.rb', line 20

def self.run
  Backup.run
end

.versionObject



15
16
17
18
# File 'lib/mysql_backup.rb', line 15

def self.version
  yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
  "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
end