rbackup 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -1
  2. data/gemspec.rb +1 -1
  3. data/lib/rbackup.rb +6 -2
  4. metadata +3 -6
data/Rakefile CHANGED
@@ -2,7 +2,8 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'rake/gempackagetask'
4
4
  require 'spec/rake/spectask'
5
- require 'gemspec'
5
+
6
+ require "#{File.dirname(__FILE__)}/gemspec"
6
7
 
7
8
  desc "Generate gemspec"
8
9
  task :gemspec do
data/gemspec.rb CHANGED
@@ -16,5 +16,5 @@ GEM_SPEC = Gem::Specification.new do |s|
16
16
  s.name = GEM_NAME
17
17
  s.platform = Gem::Platform::RUBY
18
18
  s.require_path = "lib"
19
- s.version = "0.1.7"
19
+ s.version = "0.1.8"
20
20
  end
@@ -68,8 +68,7 @@ class RBackup
68
68
  destination = profile['destination']
69
69
  source = [ profile['source'] ].flatten
70
70
 
71
- options = "--delete --numeric-ids --safe-links -axzSvL"
72
- # --delete delete extraneous files from dest dirs
71
+ options = "--numeric-ids --safe-links -axzSvL"
73
72
  # --numeric-ids don't map uid/gid values by user/group name
74
73
  # --safe-links ignore symlinks that point outside the tree
75
74
  # -a, --archive recursion and preserve almost everything (-rlptgoD)
@@ -78,6 +77,11 @@ class RBackup
78
77
  # -S, --sparse handle sparse files efficiently
79
78
  # -v, --verbose verbose
80
79
 
80
+ if profile['delete'].nil? || profile['delete']
81
+ options = "--delete " + options
82
+ # --delete delete extraneous files from dest dirs
83
+ end
84
+
81
85
  if destination.include?(':') || source.include?(':')
82
86
  options += ' -e ssh'
83
87
  # -e, --rsh=COMMAND specify the remote shell to use
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbackup
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 7
10
- version: 0.1.7
8
+ - 8
9
+ version: 0.1.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - Winton Welsh
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-28 00:00:00 -07:00
17
+ date: 2010-12-26 00:00:00 -08:00
19
18
  default_executable:
20
19
  dependencies: []
21
20
 
@@ -56,7 +55,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
55
  requirements:
57
56
  - - ">="
58
57
  - !ruby/object:Gem::Version
59
- hash: 3
60
58
  segments:
61
59
  - 0
62
60
  version: "0"
@@ -65,7 +63,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
63
  requirements:
66
64
  - - ">="
67
65
  - !ruby/object:Gem::Version
68
- hash: 3
69
66
  segments:
70
67
  - 0
71
68
  version: "0"