lib/generators/plugin_generator/plugin_generator.rb in mack-0.4.2.1 vs lib/generators/plugin_generator/plugin_generator.rb in mack-0.4.5
- old
+ new
@@ -17,9 +17,11 @@
# create vendor/plugins/<name>
directory(plugin_dir)
# create vendor/plugins/<name>/lib
directory(File.join(plugin_dir, "lib"))
+ # create vendor/plugins/<name>/lib/tasks
+ directory(File.join(plugin_dir, "lib", "tasks"))
# create vendor/plugins/<name>/init.rb
template(File.join(template_dir, "init.rb.template"), File.join(plugin_dir, "init.rb"))
# create vendor/plugins/<name>/lib/<name>.rb
template(File.join(template_dir, "lib", "plugin.rb.template"), File.join(plugin_dir, "lib", "#{param(:name).downcase}.rb"))
\ No newline at end of file