Class: Castkit::Generators::Plugin

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/plugin.rb

Overview

Generator for creating Castkit plugin modules.

This generator will produce a module under ‘Castkit::Plugins::<ClassName>` and an optional spec file.

Example:

$ castkit generate plugin Oj

This will generate:

  • lib/castkit/plugins/oj.rb

  • spec/castkit/plugins/oj_spec.rb

See Also:

Method Summary

Methods inherited from Base

component, #create_component, #create_spec, source_root