Parent

Methods

Templater::Actions::File

Public Instance Methods

invoke!() click to toggle source

Renders the template and copies it to the destination.

    # File lib/merb-gen/templater.rb, line 25
25:       def invoke!
26:         callback(:before)
27:         ::FileUtils.mkdir_p(::File.dirname(destination))
28:         ::FileUtils.rm_rf(destination)
29:         ::FileUtils.cp_r(source, destination)
30:         callback(:after)
31:       end
revoke!() click to toggle source

removes the destination file

    # File lib/merb-gen/templater.rb, line 34
34:       def revoke!
35:         ::FileUtils.rm_r(destination, :force => true)
36:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.