Sha256: 0df358d5b325b5f0b52f7823f33e963e1b021543f930d8cc67e6e18998b1a218
Contents?: true
Size: 362 Bytes
Versions: 10
Compression:
Stored size: 362 Bytes
Contents
User.as_anonymous_admin do JobTemplate.without_auditing do Dir[File.join("#{ForemanRemoteExecution::Engine.root}/app/views/templates/**/*.erb")].each do |template| sync = !Rails.env.test? && Setting[:remote_execution_sync_templates] JobTemplate.import!(File.read(template), :default => true, :locked => true, :update => sync) end end end
Version data entries
10 entries across 10 versions & 1 rubygems