Sha256: 4af3f15e34626dd578ca2c121d9654692caba8245d87988867624a34a874964d

Contents?: true

Size: 989 Bytes

Versions: 14

Compression:

Stored size: 989 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

14 entries across 14 versions & 2 rubygems

Version Path
maestrano-rails-0.12.0 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.11.0 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.10.0 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.9.5 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.9.4 lib/generators/maestrano/install_generator.rb
maestrano-rails-test-0.9.4 lib/generators/maestrano/install_generator.rb
maestrano-rails-test-0.9.3 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.9.3 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.9.2 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.9.1 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.9.0 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.8.0 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.7.0 lib/generators/maestrano/install_generator.rb
maestrano-rails-0.6.0 lib/generators/maestrano/install_generator.rb