lib/app_drone/template.erb in app_drone-0.10.0 vs lib/app_drone/template.erb in app_drone-0.11.0

- old
+ new

@@ -15,13 +15,13 @@ # skips test framework, but we can probably just bastardize the options in the same way as with :skip_bundle # either make `test` build the actual directories etc., or use a script # either way, this method is stupid. end -<% overridden_generator_methods.each do |m| %> +<% generator_methods.each do |m| %> def <%= m %> - super + <%= 'super' if overridden_generator_method?(m) %> <%= @directives[m].join("\n") %> end <% end %> def leftovers @@ -30,9 +30,12 @@ # This should be removed when the database drone is installed rake 'db:create' rake 'db:migrate' + <% if generator_methods.include?(:final) %> + final + <% end %> # Drone Notices <% drone_notices.each do |drone, notices| %> <% notices.each do |notice| %> say "[<%= drone.human_name %>] <%= notice %>", :red