rmybackup 0.0.4 → 0.0.5
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/rmybackup +5 -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.
|
15
|
+
GEM_VERSION = "0.0.5"
|
16
16
|
|
17
17
|
#Process the command line arguments
|
18
18
|
ARGV.options do |opts|
|
19
|
-
|
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
|