yore 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/yore +6 -5
- data/lib/yore/yore_core.rb +2 -1
- data/yore.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/bin/yore
CHANGED
@@ -6,6 +6,7 @@ require 'rubygems'
|
|
6
6
|
gem 'buzzcore'; require 'buzzcore';
|
7
7
|
gem 'cmdparse'; require 'cmdparse'
|
8
8
|
|
9
|
+
require_paths_first '../lib'
|
9
10
|
require 'yore/yore_core'
|
10
11
|
|
11
12
|
CMD_OPTIONS = {} # options given on command line
|
@@ -28,7 +29,7 @@ end
|
|
28
29
|
|
29
30
|
cmd = CmdParse::CommandParser.new( true )
|
30
31
|
cmd.program_name = "yore"
|
31
|
-
cmd.program_version = [0, 0,
|
32
|
+
cmd.program_version = [0, 0, 8]
|
32
33
|
# Options are given after a command and before arguments on the command line
|
33
34
|
# so global options are given first, before the first command
|
34
35
|
# ie ruby yore.rb --global_option command --command_option argument1 argument2 argumentn
|
@@ -37,7 +38,7 @@ cmd.options = CmdParse::OptionParserWrapper.new do |opt|
|
|
37
38
|
opt.on("--verbose", "Be verbose when outputting info") do |t|
|
38
39
|
CMD_OPTIONS[:verbose] = t
|
39
40
|
end
|
40
|
-
opt.on("--config", "Configuration XML File") do |t|
|
41
|
+
opt.on("-c", "--config CONFIG_FILE", "Configuration XML File") do |t|
|
41
42
|
CMD_OPTIONS[:config] = t
|
42
43
|
end
|
43
44
|
end
|
@@ -48,9 +49,9 @@ yore = YoreCore::Yore.new # main program object
|
|
48
49
|
|
49
50
|
# these options must be given after backup and before arguments
|
50
51
|
option_parser = CmdParse::OptionParserWrapper.new do |opt|
|
51
|
-
opt.on( '--all', 'Delete all IP addresses' ) do
|
52
|
-
|
53
|
-
end
|
52
|
+
#opt.on( '--all', 'Delete all IP addresses' ) do
|
53
|
+
# CMD_OPTIONS[:deleteAll] = true
|
54
|
+
#end
|
54
55
|
end
|
55
56
|
|
56
57
|
load_save_option_parser = CmdParse::OptionParserWrapper.new do |opt|
|
data/lib/yore/yore_core.rb
CHANGED
@@ -533,7 +533,8 @@ module YoreCore
|
|
533
533
|
|
534
534
|
def save(aArgs)
|
535
535
|
fnArchive = aArgs.is_a?(Array) ? aArgs.first : aArgs #only supported argument
|
536
|
-
|
536
|
+
config[:out_file] = File.expand_path(fnArchive || 'save.tgz',config[:basepath])
|
537
|
+
save_internal(config[:out_file])
|
537
538
|
end
|
538
539
|
|
539
540
|
def backup(aArgs) # was aJobFiles
|
data/yore.gemspec
CHANGED