Class: Dirdiff::TargetToSourceCallbackStrategy

Inherits:
SourceToTargetCallbackStrategy show all
Defined in:
lib/dirdiff/dirdiff.rb

Instance Method Summary collapse

Methods inherited from SourceToTargetCallbackStrategy

#initialize

Constructor Details

This class inherits a constructor from Dirdiff::SourceToTargetCallbackStrategy

Instance Method Details

#add_directory(path, subdir) ⇒ Object



157
158
159
160
# File 'lib/dirdiff/dirdiff.rb', line 157

def add_directory(path, subdir)
    @callback.remove_directory(path, subdir)
    Find.prune
end

#add_file(path, file) ⇒ Object



162
163
164
# File 'lib/dirdiff/dirdiff.rb', line 162

def add_file(path, file)
    @callback.remove_file(path, file)
end

#update_file(path, file) ⇒ Object



166
167
# File 'lib/dirdiff/dirdiff.rb', line 166

def update_file(path,file)
end