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

Version Path
foreman_remote_execution-1.3.0 db/seeds.d/70-job_templates.rb
foreman_remote_execution-1.2.2 db/seeds.d/70-job_templates.rb
foreman_remote_execution-1.2.1 db/seeds.d/70-job_templates.rb
foreman_remote_execution-1.2.0 db/seeds.d/70-job_templates.rb
foreman_remote_execution-1.1.1 db/seeds.d/70-job_templates.rb
foreman_remote_execution-1.1.0 db/seeds.d/70-job_templates.rb
foreman_remote_execution-1.0.0 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.3.2 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.3.1 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.3.0 db/seeds.d/70-job_templates.rb