Class: Faceauth::Generators::InstallGenerator

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject

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_readmeObject

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