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
Defined Under Namespace
Classes: Backup, Install, Options, Pty
Constant Summary
collapse
- CONF_FILE =
'/etc/mysql_backup'
Class Method Summary
collapse
Class Method Details
.install ⇒ Object
28
29
30
|
# File 'lib/mysql_backup.rb', line 28
def self.install
Install.install
end
|
.options ⇒ Object
24
25
26
|
# File 'lib/mysql_backup.rb', line 24
def self.options
Options.options
end
|
.run ⇒ Object
20
21
22
|
# File 'lib/mysql_backup.rb', line 20
def self.run
Backup.run
end
|
.version ⇒ Object
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
|