lib/katello/plugin.rb in katello-3.11.2 vs lib/katello/plugin.rb in katello-3.12.0.rc1
- old
+ new
@@ -345,19 +345,28 @@
javascripts = find_katello_assets(:type => 'javascripts')
images = find_katello_assets(:type => 'images')
vendor_images = find_katello_assets(:type => 'images', :vendor => true)
+ bastion_locale_files = Dir.glob("#{Katello::Engine.root}/engines/bastion/vendor/assets/javascripts/#{Bastion.localization_path("*")}")
+ bastion_locale_files.map do |file|
+ file.gsub!("#{Katello::Engine.root}/engines/bastion/vendor/assets/javascripts/", "")
+ end
+
precompile = [
'katello/katello.css',
'katello/containers/container.css',
+ 'bastion/bastion.css',
+ 'bastion/bastion.js',
+ /bastion\S+.(?:svg|eot|woff|ttf)$/,
'bastion_katello/bastion_katello.css',
'bastion_katello/bastion_katello.js',
/bastion_katello\S+.(?:svg|eot|woff|ttf)$/
]
precompile.concat(javascripts)
precompile.concat(images)
precompile.concat(vendor_images)
+ precompile.concat(bastion_locale_files)
precompile_assets(precompile)
end