rmybackup 0.0.4 → 0.0.5

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/rmybackup +5 -2
  2. metadata +2 -2
data/bin/rmybackup CHANGED
@@ -12,11 +12,14 @@ require 'optparse'
12
12
 
13
13
  #Set some globals
14
14
  OPTIONS = { :config_file => "/etc/rmybackup.conf" }
15
- GEM_VERSION = "0.0.4"
15
+ GEM_VERSION = "0.0.5"
16
16
 
17
17
  #Process the command line arguments
18
18
  ARGV.options do |opts|
19
- opts.on("-f /etc/rmybackup.conf","--config_file /etc/rmybackup.conf","Set Config File",String) { |OPTIONS[:config_file]| }
19
+ #Set the config file
20
+ opts.on("-f /etc/rmybackup.conf","--config_file /etc/rmybackup.conf","Set Config File",String) do |o|
21
+ OPTIONS[:config_file] = o
22
+ end
20
23
  opts.on("-v","--version","Outputs version") { puts "Version - #{GEM_VERSION}"; exit }
21
24
 
22
25
  #Allow the user to write the sample config file to either the default (no file specified) or to the file they specify
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bryan Shelton