Class: GoogleAuthentication::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/google_authentication/install_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject

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_deviseObject

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_readmeObject

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