Sha256: 8092985c43b0b69af1245900ae4e72806053920292c34e6b396233c676d23266

Contents?: true

Size: 663 Bytes

Versions: 189

Compression:

Stored size: 663 Bytes

Contents

namespace :katello do
  desc "Synchronize Ansible job templates with lates community templates"
  task :sync_ansible_job_templates => :environment do
    template_repository = "https://github.com/theforeman/community-templates"
    Dir.mktmpdir  do |dir|
      system("git clone -q -b develop #{template_repository} #{dir}/ct")
      Dir.chdir "#{Katello::Engine.root}/app/views/foreman"
      system("rsync -am \
        --include='*katello_ansible_default*' \
        --exclude='*' \
        #{dir}/ct/job_templates/* ./job_templates")
      Dir.chdir Katello::Engine.root
      system("git status -- app/views/foreman_ansible/job_templates")
    end
  end
end

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
katello-3.15.0 lib/katello/tasks/job_templates.rake
katello-3.15.0.rc2 lib/katello/tasks/job_templates.rake
katello-3.15.0.rc1.3 lib/katello/tasks/job_templates.rake
katello-3.15.0.rc1.2 lib/katello/tasks/job_templates.rake
katello-3.15.0.rc1.1 lib/katello/tasks/job_templates.rake
katello-3.15.0.rc1 lib/katello/tasks/job_templates.rake
katello-3.14.1 lib/katello/tasks/job_templates.rake
katello-3.13.4 lib/katello/tasks/job_templates.rake
katello-3.14.0 lib/katello/tasks/job_templates.rake
katello-3.13.3 lib/katello/tasks/job_templates.rake
katello-3.14.0.rc2 lib/katello/tasks/job_templates.rake
katello-3.13.2 lib/katello/tasks/job_templates.rake
katello-3.14.0.rc1 lib/katello/tasks/job_templates.rake
katello-3.13.1 lib/katello/tasks/job_templates.rake
katello-3.13.0 lib/katello/tasks/job_templates.rake
katello-3.13.0.rc2.1 lib/katello/tasks/job_templates.rake
katello-3.13.0.rc2 lib/katello/tasks/job_templates.rake
katello-3.12.3 lib/katello/tasks/job_templates.rake
katello-3.12.2 lib/katello/tasks/job_templates.rake
katello-3.13.0.rc1 lib/katello/tasks/job_templates.rake