Class: SocialTokenizer::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SocialTokenizer::InstallGenerator
- Includes:
- Rails::Generators::Migration, Generators::Utils
- Defined in:
- lib/generators/social_tokenizer/install/install_generator.rb
Instance Method Summary collapse
-
#add_initializer ⇒ Object
all public methods in here will be run in order.
- #hello ⇒ Object
Methods included from Generators::Utils
Instance Method Details
#add_initializer ⇒ Object
all public methods in here will be run in order
14 15 16 17 |
# File 'lib/generators/social_tokenizer/install/install_generator.rb', line 14 def add_initializer output "You probably won't need to configure anything, but you could, if that's your thing.", :magenta template "initializer.rb", "config/initializers/social_tokenizer.rb" end |
#hello ⇒ Object
8 9 10 |
# File 'lib/generators/social_tokenizer/install/install_generator.rb', line 8 def hello output "Go Go SocialTokenizer Installer, Go!", :magenta end |