Sha256: d717004d07533f89e5ed4ac8e545a8eede08f91e927b1c71cfef0310a47ca6a6
Contents?: true
Size: 757 Bytes
Versions: 5
Compression:
Stored size: 757 Bytes
Contents
# frozen_string_literal: true organizations = Organization.unscoped.all locations = Location.unscoped.all User.as_anonymous_admin do RemoteExecutionFeature.without_auditing do JobTemplate.without_auditing do Dir[File.join("#{ForemanLeapp::Engine.root}/app/views/foreman_leapp/"\ 'job_templates/**/*.erb')].each do |template| template = JobTemplate.import_raw!(File.read(template), :default => true, :lock => true, :update => true) template.organizations = organizations if template.present? template.locations = locations if template.present? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems