yore 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/yore +6 -5
  3. data/lib/yore/yore_core.rb +2 -1
  4. data/yore.gemspec +1 -1
  5. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
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, 4]
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
- CMD_OPTIONS[:deleteAll] = true
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|
@@ -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
- save_internal(fnArchive)
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{yore}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["buzzware"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzzware