Sha256: db4573136e92e7d2c66526c77ccd68c65154914723e99f93800cd37f250f2340
Contents?: true
Size: 918 Bytes
Versions: 3
Compression:
Stored size: 918 Bytes
Contents
# to make Foreman#in_rake? helper available if Foreman's lib is available require 'rails' require 'angular-rails-templates' require File.expand_path('bastion/engine', File.dirname(__FILE__)) #rubocop:disable Style/ClassVars module Bastion @@plugins = {} def self.plugins @@plugins end def self.register_plugin(plugin) @@plugins[plugin[:name]] = plugin end def self.config url_root = ENV['RAILS_RELATIVE_URL_ROOT'] base_config = { 'markTranslated' => SETTINGS[:mark_translated] || false, 'relativeUrlRoot' => url_root ? url_root + '/' : '/', } Bastion.plugins.each do |_name, plugin| base_config.merge!(plugin[:config_generator].call) if plugin[:config_generator] base_config.merge!(plugin[:config]) if plugin[:config] end base_config end def self.localization_path(locale) "bastion/angular-i18n/angular-locale_#{locale}.js" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
katello-4.15.0 | engines/bastion/lib/bastion.rb |
katello-4.15.0.rc2 | engines/bastion/lib/bastion.rb |
katello-4.15.0.rc1 | engines/bastion/lib/bastion.rb |