Class: Templater::Actions::EmptyDirectory

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

### Methods

exists? identical? invoke! new render revoke!

### Public Class methods

new(generator, name, destination, options={})

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

exists?()

Checks if the destination file already exists.

### Returns

Boolean: | true if the file exists, false otherwise.

identical?()

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

### Returns

Boolean: | true if it is identical, false otherwise.

invoke!()

Renders the template and copies it to the destination.

render()

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

### Returns

String: | The source file.

revoke!()

removes the destination file

[Validate]