s3-mysql-backup 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/s3-mysql-backup +4 -8
  2. metadata +1 -1
@@ -14,20 +14,16 @@ end
14
14
 
15
15
  def usage
16
16
  puts <<-END
17
- Usage: s3-mysql-backup [OPTIONS] CONFIG_FILE
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 if ARGV.delete("-h") || ARGV.delete("--help")
28
- $DATABASE = ARGV.delete("-d") || ARGV.delete("--database")
29
- usage unless ARGV.first
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3-mysql-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: