Class: Apimaster::Generators::RewindBase

Inherits:
Command
  • Object
show all
Defined in:
lib/apimaster/generators/command.rb

Overview

Base class for commands which handle generator actions in reverse, such as Destroy.

Direct Known Subclasses

Destroy

Constant Summary

Constants inherited from Base

Base::DEFAULT_SHEBANG

Instance Attribute Summary

Attributes inherited from Base

#active, #args, #destination_root, #logger, #source_root, #spec, #stdout

Attributes included from Options

#options

Instance Method Summary collapse

Methods inherited from Command

#class_collisions, #dependency, #destination_path, #readme, #source_path, #write_manifest

Methods inherited from Base

#after_generate, #base_name, #camelize, #destination_path, #initialize, #manifest, #pluralize, #run, #source_path

Methods included from Options

included

Constructor Details

This class inherits a constructor from Apimaster::Generators::Base

Instance Method Details

#invoke!Object

Rewind action manifest.



181
182
183
# File 'lib/apimaster/generators/command.rb', line 181

def invoke!
  manifest.rewind(self)
end