class
rails latest stable - Superclass: DelegateClass(Rails::Generator::Base)

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

Generator commands delegate Rails::Generator::Base and implement a standard set of actions. Their behavior is defined by the way they respond to these actions: Create brings life; Destroy brings death; List passively observes.

Commands are invoked by replaying (or rewinding) the generator’s manifest of actions. See Rails::Generator::Manifest and Rails::Generator::Base#manifest method that generator subclasses are required to override.

Commands allows generators to "plug in" invocation behavior, which corresponds to the GoF Strategy pattern.

Files

  • railties/lib/rails_generator/commands.rb