s3-mysql-backup 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/s3-mysql-backup +4 -8
- metadata +1 -1
data/bin/s3-mysql-backup
CHANGED
|
@@ -14,20 +14,16 @@ end
|
|
|
14
14
|
|
|
15
15
|
def usage
|
|
16
16
|
puts <<-END
|
|
17
|
-
Usage: s3-mysql-backup
|
|
18
|
-
Options:
|
|
19
|
-
-h, --help This help screen
|
|
20
|
-
-d, --database The database name to back up
|
|
17
|
+
Usage: s3-mysql-backup DATABASE CONFIG_FILE
|
|
21
18
|
|
|
22
19
|
END
|
|
23
20
|
exit 1
|
|
24
21
|
end
|
|
25
22
|
|
|
26
23
|
def process_options
|
|
27
|
-
usage
|
|
28
|
-
$DATABASE
|
|
29
|
-
|
|
30
|
-
$CONFIG_FILE_NAME = File.expand_path(ARGV.first)
|
|
24
|
+
usage unless ARGV.size == 2
|
|
25
|
+
$DATABASE = ARGV.first
|
|
26
|
+
$CONFIG_FILE_NAME = File.expand_path(ARGV.last)
|
|
31
27
|
end
|
|
32
28
|
|
|
33
29
|
def main
|