Class: GoogleAuthentication::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- GoogleAuthentication::Generators::InstallGenerator
- Defined in:
- lib/generators/google_authentication/install_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#copy_initializer ⇒ Object
Copy the initializer template in the config/initializer directory.
-
#install_devise ⇒ Object
Run devise:install generator.
-
#show_readme ⇒ Object
Show the readme file with further instructions after installation.
Instance Method Details
#copy_initializer ⇒ Object
Copy the initializer template in the config/initializer directory
12 13 14 |
# File 'lib/generators/google_authentication/install_generator.rb', line 12 def copy_initializer template "google_authentication.rb", "config/initializers/google_authentication.rb" end |
#install_devise ⇒ Object
Run devise:install generator
17 18 19 |
# File 'lib/generators/google_authentication/install_generator.rb', line 17 def install_devise invoke "devise:install" end |
#show_readme ⇒ Object
Show the readme file with further instructions after installation
22 23 24 |
# File 'lib/generators/google_authentication/install_generator.rb', line 22 def show_readme readme "README" if behavior == :invoke end |