Class: Roger::Generators::GeneratorGenerator
- Inherits:
-
Base
- Object
- Thor::Group
- Cli::Command
- Base
- Roger::Generators::GeneratorGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/roger/generators/generator.rb
Overview
The generator generator!
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Cli::Command
exit_on_failure?, #initialize_project
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/roger/generators/generator.rb', line 9 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#create_lib_file ⇒ Object
13 14 15 16 17 |
# File 'lib/roger/generators/generator.rb', line 13 def create_lib_file destination = "#{path}/#{name}_generator.rb" template("templates/generator.tt", destination) say "Add `require #{destination}` to your Rogerfile and run roger generate #{name}." end |