Methods

Templater::Actions::Directory

Public Instance Methods

identical?() click to toggle source
    # File lib/merb-gen/templater.rb, line 4
 4:       def identical?
 5:         sanity = ::File.directory?(destination) && exists?
 6:         if sanity
 7:           src  = Dir[::File.join(source, "**", "*")]
 8:           src.map! {|f| f.gsub(/#{source}/, "")}
 9:           dest = Dir[::File.join(destination, "**", "*")]
10:           dest.map!   {|f| f.gsub(/#{destination}/, "")}
11:           src == dest
12:         else
13:           false
14:         end
15:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.