Class: SpRailsSaml::ControllersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SpRailsSaml::ControllersGenerator
- Defined in:
- lib/generators/sp-rails-saml/controllers_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_saml_setting_controller ⇒ Object
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 ['settings'] end |
#create_session_controller ⇒ Object
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 |