Class: UcbRails::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UcbRails::Generators::InstallGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/ucb_rails/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/ucb_rails/install_generator.rb', line 15 def install return if .readme? directory 'app/assets' directory 'app/helpers' directory 'app/views' directory 'config' install_migrations end |
#show_readme ⇒ Object
25 26 27 28 29 |
# File 'lib/generators/ucb_rails/install_generator.rb', line 25 def show_readme if behavior == :invoke readme "README" end end |