Class: RubiGen::Commands::Destroy

Class | RubiGen::Commands::Destroy
In: | lib/rubigen/commands.rb
Parent: | RewindBase

Undo the actions performed by a generator. Rewind the action manifest and attempt to completely erase the results of each action.

### Methods

complex_template directory file migration_template route_resources template

### Public Instance methods

complex_template(*args)
directory(relative_path)

Remove each directory in the given path from right to left. Remove each subdirectory if it exists and is a directory.

file(relative_source, relative_destination, file_options = {})

Remove a file if it exists and is a file.

migration_template(relative_source, relative_destination, template_options = {})

When deleting a migration, it knows to delete every file named "[0-9]*_#{file_name}".

route_resources(*resources)
template(relative_source, relative_destination, file_options = {})

Alias for file

[Validate]