Class: PluginGenerator

Inherits:
Genosaurus show all
Defined in:
lib/mack/generators/plugin_generator/plugin_generator.rb

Overview

Generates plugins for Mack applications.

Example:

rake generate:plugin name=my_cool_plugin

This will generate the following in your mack application:

vendor/plugins/my_cool_plugin
vendor/plugins/my_cool_plugin/init.rb
vendor/plugins/my_cool_plugin/lib
vendor/plugins/my_cool_plugin/lib/my_cool_plugin.rb

Instance Method Summary collapse

Methods inherited from Genosaurus

#after_generate, #before_generate, #copy, describe, description_detail, #directory, #generate, #initialize, #manifest, #manifest_path, #method_missing, #param, require_param, required_params, run, #template, #templates_directory_path

Constructor Details

This class inherits a constructor from Genosaurus

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Genosaurus

Instance Method Details

#setupObject



14
15
16
# File 'lib/mack/generators/plugin_generator/plugin_generator.rb', line 14

def setup
  @plugin_name = param(:name).underscore.downcase
end