Class: Faceauth::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Faceauth::Generators::InstallGenerator
- Defined in:
- lib/generators/faceauth/install_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#copy_initializer ⇒ Object
Method to generate a initializer configuration file with default configuration variables available.
-
#show_readme ⇒ Object
Method to read and display README document contents in terminal when generator is invoked.
Instance Method Details
#copy_initializer ⇒ Object
Method to generate a initializer configuration file with default configuration variables available.
8 9 10 |
# File 'lib/generators/faceauth/install_generator.rb', line 8 def copy_initializer copy_file "initializer.rb", "config/initializers/faceauth.rb" end |
#show_readme ⇒ Object
Method to read and display README document contents in terminal when generator is invoked.
13 14 15 |
# File 'lib/generators/faceauth/install_generator.rb', line 13 def show_readme readme "README" end |