lib/gemsmith/templates/lib/generators/gem/install/install_generator.rb.tmp in gemsmith-0.3.0 vs lib/gemsmith/templates/lib/generators/gem/install/install_generator.rb.tmp in gemsmith-0.4.0
- old
+ new
@@ -1,20 +1,10 @@
module <%= config[:gem_class] %>
class InstallGenerator < Rails::Generators::Base
- desc "Installs additional <%= config[:gem_class] %> resources."
+ source_root File.join(File.dirname(__FILE__), "..", "templates")
- # Override the default source path by pulling from a shared templates directory for all generators.
- def self.source_root
- @source_root ||= File.join(File.dirname(__FILE__), "..", "templates")
- end
-
- # Let others know about you.
- def self.banner
- "rails generate <%= config[:gem_name] %>:install"
- end
-
- # TODO - Explain yourself.
- def copy_files
+ desc "Installs additional <%= config[:gem_class] %> resources."
+ def execute
# TODO - Add your fancy/schmancy install code here.
end
end
end