lib/padrino-gen/generators/app.rb in padrino-gen-0.10.3 vs lib/padrino-gen/generators/app.rb in padrino-gen-0.10.4
- old
+ new
@@ -1,14 +1,18 @@
module Padrino
module Generators
+ ##
+ # Responsible for applications within a Padrino project. Creates and mounts the application and gives the user related information.
+ #
class App < Thor::Group
# Add this generator to our padrino-gen
Padrino::Generators.add_generator(:app, 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 project [name]"; end
# Include related modules
include Thor::Actions
include Padrino::Generators::Actions