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-4.2.0.rc1 lib/katello/tasks/job_templates.rake
katello-4.0.2.1 lib/katello/tasks/job_templates.rake
katello-4.1.2.1 lib/katello/tasks/job_templates.rake
katello-4.0.2 lib/katello/tasks/job_templates.rake
katello-4.1.2 lib/katello/tasks/job_templates.rake
katello-3.18.4 lib/katello/tasks/job_templates.rake
katello-4.1.1 lib/katello/tasks/job_templates.rake
katello-4.1.0 lib/katello/tasks/job_templates.rake
katello-4.0.1.2 lib/katello/tasks/job_templates.rake
katello-3.18.3.1 lib/katello/tasks/job_templates.rake
katello-4.1.0.rc2.2 lib/katello/tasks/job_templates.rake
katello-4.1.0.rc2.1 lib/katello/tasks/job_templates.rake
katello-4.0.1.1 lib/katello/tasks/job_templates.rake
katello-3.18.3 lib/katello/tasks/job_templates.rake
katello-4.1.0.rc2 lib/katello/tasks/job_templates.rake
katello-4.0.1 lib/katello/tasks/job_templates.rake
katello-4.1.0.rc1.1 lib/katello/tasks/job_templates.rake
katello-4.1.0.rc1 lib/katello/tasks/job_templates.rake
katello-4.0.0 lib/katello/tasks/job_templates.rake
katello-4.0.0.rc3.1 lib/katello/tasks/job_templates.rake