Sha256: e968b3f232cd049de3e99424ffe70d8cfda607e724f6cfb0520cc26b4f904bad

Contents?: true

Size: 269 Bytes

Versions: 11

Compression:

Stored size: 269 Bytes

Contents

User.as_anonymous_admin do
  JobTemplate.without_auditing do
    Dir[File.join("#{ForemanRemoteExecution::Engine.root}/app/views/templates/**/*.erb")].each do |template|
      JobTemplate.import(File.read(template), :default => true, :locked => true)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_remote_execution-0.2.3 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.2.2 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.2.1 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.1.2 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.1.1 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.1.0 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.0.10 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.0.8 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.0.7 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.0.6 db/seeds.d/70-job_templates.rb
foreman_remote_execution-0.0.5 db/seeds.d/70-job_templates.rb