Sha256: a8c4697b8981c5f535cc577fdbefda60bff593d885a0e3562c877f1c38a6008d
Contents?: true
Size: 788 Bytes
Versions: 4
Compression:
Stored size: 788 Bytes
Contents
module IntegrationPal class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc "Add CAS config to application.rb" def update_application_config application "@cas_server_url = 'https://cas-sso.instructure.com/'" application "config.rack_cas.server_url = @cas_server_url" end desc "Mount the engine" def add_routes route "mount IntegrationPal::Engine, at: IntegrationPal::Engine.mounted_path" end desc "Add setup to ApplicationJob" def add_common_methods_to_application_job inject_into_file "#{Rails.root}/app/jobs/application_job.rb", after: "class ApplicationJob < ActiveJob::Base\n" do <<-'RUBY' include IntegrationPal::BaseJob RUBY end end end end
Version data entries
4 entries across 4 versions & 1 rubygems