Sha256: 401ef4ec7b8562aaceb9e14dc9e7c93289eddc7fca6b99aba42fc478b443f9f0
Contents?: true
Size: 759 Bytes
Versions: 8
Compression:
Stored size: 759 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, :locked => true, :update => true) template.organizations = organizations if template.present? template.locations = locations if template.present? end end end end
Version data entries
8 entries across 8 versions & 1 rubygems