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