lib/noe/go.rb in noe-1.3.0 vs lib/noe/go.rb in noe-1.4.0
- old
+ new
@@ -130,10 +130,11 @@
(entry.file? and File.directory?(relocated)) or
(entry.directory? and File.file?(relocated))
end
def build_one_directory(entry, variables)
+ return if entry.ignore?
relocated = entry.relocate(variables)
todo = []
skipped = false
if File.exists?(relocated)
@@ -167,10 +168,11 @@
todo
end
def build_one_file(entry, variables)
+ return if entry.ignore?
relocated = entry.relocate(variables)
todo = []
skipped = false
if File.exists?(relocated)
@@ -235,10 +237,10 @@
if entry.file?
build_one_file(entry, variables)
elsif entry.directory?
build_one_directory(entry, variables)
end
- }.flatten
+ }.flatten.compact
# let's go now
if dry_run
commands.each{|c| puts c}
else