Class: Jdt::PluginGenerator

Inherits:
Generator show all
Defined in:
lib/jdt/generator/plugin_generator.rb

Instance Attribute Summary

Attributes inherited from Generator

#author, #creation_date, #description, #location, #name

Instance Method Summary collapse

Instance Method Details

#generate(name) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/jdt/generator/plugin_generator.rb', line 5

def generate(name)
  super

  # create files
  template("templates/plugin/manifest.xml.erb", "#{folder}/#{prefixed_name}.xml")
  template("templates/plugin/main.php.erb", "#{folder}/#{prefixed_name}.php")
end