Sha256: 5733071333773328aa9a6d6fddbb1872d8a23bfd3dbb894c1f40ddaceeb883aa
Contents?: true
Size: 960 Bytes
Versions: 12
Compression:
Stored size: 960 Bytes
Contents
module Maestrano module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) desc "Creates a Maestrano initializer and a customizable controller for SAML Single Sign-On" def copy_initializer template "maestrano.rb", "config/initializers/maestrano.rb" end def copy_saml_controller template "saml_controller.rb", "app/controllers/maestrano/auth/saml_controller.rb" end def copy_account_groups_controller template "groups_controller.rb", "app/controllers/maestrano/account/groups_controller.rb" end def copy_account_group_users_controller template "group_users_controller.rb", "app/controllers/maestrano/account/group_users_controller.rb" end def add_maestrano_routes maestrano_routes = <<-CONTENT maestrano_routes CONTENT route maestrano_routes end end end end
Version data entries
12 entries across 12 versions & 1 rubygems