lib/padrino-gen/generators/controller.rb in padrino-gen-0.10.3 vs lib/padrino-gen/generators/controller.rb in padrino-gen-0.10.4

- old
+ new

@@ -1,14 +1,17 @@ module Padrino module Generators - + ## + # Responsible for generating route controllers and associated tests within a Padrino application. + # class Controller < Thor::Group # Add this generator to our padrino-gen Padrino::Generators.add_generator(:controller, self) # Define the source template root def self.source_root; File.expand_path(File.dirname(__FILE__)); end + # Defines the banner for this CLI generator def self.banner; "padrino-gen controller [name]"; end # Include related modules include Thor::Actions include Padrino::Generators::Actions