Class: Multiauth::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_assetsObject



8
9
10
11
12
# File 'lib/generators/multiauth/multiauth_generator.rb', line 8

def copy_assets
  directory "images", "public/images/"
  copy_file "multiauth.css", "public/stylesheets/multiauth.css"
  copy_file "multiauth.js", "public/javascripts/multiauth.js"
end

#copy_config_fileObject



14
15
16
# File 'lib/generators/multiauth/multiauth_generator.rb', line 14

def copy_config_file
  copy_file "auth_providers.yml", "config/auth_providers.yml"
end

#show_readmeObject



18
19
20
# File 'lib/generators/multiauth/multiauth_generator.rb', line 18

def show_readme
  readme "README"
end