Class: ShibbolethAuth::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/generators/auth_generator.rb', line 9

def self.source_root
  File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#install_authObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/generators/auth_generator.rb', line 12

def install_auth
  copy_file(
    'app/views/shibboleth_auth/login/login_form.html.haml',
    'app/views/shibboleth_auth/login/login_form.html.haml'
  )
  copy_file(
    'app/views/shibboleth_auth/login/show.html.haml',
    'app/views/shibboleth_auth/login/show.html.haml'
  )
  copy_file(
    'config/initializers/shibboleth_auth.rb',
    'config/initializers/shibboleth_auth.rb'
  )
end