Class Templater::Actions::EmptyDirectory
In: lib/templater/actions/empty_directory.rb
Parent: Action

Methods

exists?   identical?   invoke!   new   render   revoke!  

Public Class methods

Builds a new Directory

Parameters

generator<Object>:The generator
name<Symbol>:The name of this directory
destination<String>:Full path to the destination of this directory
options<Hash{Symbol=>Symbol}:Options, including callbacks.

Public Instance methods

Checks if the destination file already exists.

Returns

Boolean:true if the file exists, false otherwise.

For empty directory this is in fact alias for exists? method.

Returns

Boolean:true if it is identical, false otherwise.

Renders the template and copies it to the destination.

Returns an empty String: there‘s nothing to read from.

Returns

String:The source file.

removes the destination file

[Validate]