Class: SpRailsSaml::ControllersGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/sp-rails-saml/controllers_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_saml_setting_controllerObject



16
17
18
# File 'lib/generators/sp-rails-saml/controllers_generator.rb', line 16

def create_saml_setting_controller
  copy_file 'controllers/saml_settings_controller.rb', 'app/controllers/saml/saml_settings_controller.rb' if options['settings']
end

#create_session_controllerObject



11
12
13
14
# File 'lib/generators/sp-rails-saml/controllers_generator.rb', line 11

def create_session_controller
  copy_file 'controllers/sessions_controller.rb', 'app/controllers/saml/sessions_controller.rb'
  copy_file 'controllers/ssos_controller.rb', 'app/controllers/saml/ssos_controller.rb'
end