Sha256: 9259e75521d90e4672caa45bf1de7fbefd6223e4129a4d622c943de9c14be964
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 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_hook_groups_controller template "groups_controller.rb", "app/controllers/maestrano/account_hook/groups_controller.rb" end def copy_account_hook_group_users_controller template "group_users_controller.rb", "app/controllers/maestrano/account_hook/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maestrano-rails-0.5.0 | lib/generators/maestrano/install_generator.rb |