outback 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -1
- data/VERSION +1 -1
- data/lib/outback/directory_source.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
@@ -22,7 +22,7 @@ module Outback
|
|
22
22
|
source_dir = Pathname.new(path).realpath
|
23
23
|
archive_name = Pathname.new(tmpdir).join("#{backup_name}_#{timestamp}_#{source_name}.tar.gz")
|
24
24
|
exclude_list = Pathname.new(tmpdir).join('exclude_list.txt')
|
25
|
-
File.open(exclude_list, 'w') { |f| f << excludes.join("\n") }
|
25
|
+
File.open(exclude_list, 'w') { |f| f << excludes.map { |e| e.to_s.sub(/\A\//, '') }.join("\n") }
|
26
26
|
verbose_switch = Outback.verbose? ? 'v' : ''
|
27
27
|
commandline = "tar -cz#{verbose_switch}pf #{archive_name} --exclude-from=#{exclude_list} --directory=/ #{source_dir.to_s.sub(/\A\//, '')}"
|
28
28
|
Outback.debug "executing command: #{commandline}"
|