Sha256: 35983ccdec16717367ef66701cde64cb46736964f79429e047133b0713fdd3e0
Contents?: true
Size: 1.46 KB
Versions: 11
Compression:
Stored size: 1.46 KB
Contents
require 'daddy/itamae' version = ENV['WKHTMLTOPDF_VERSION'] || ItamaePluginRecipeDaddy::WKHTMLTOPDF_VERSION case os_version when /rhel-6\.(.*?)/ execute "download wkhtmltox-#{version}" do cwd '/var/daddy/tmp' command <<-EOF rm -f wkhtmltox-#{version}.centos6.x86_64.rpm wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/#{version.split('-').first}/wkhtmltox-#{version}.centos6.x86_64.rpm EOF not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "wkhtmltox-#{version}.centos6_sha256sum.txt")}" end execute "install wkhtmltox-#{version}" do cwd '/var/daddy/tmp' user 'root' command <<-EOF yum install -y wkhtmltox-#{version}.centos6.x86_64.rpm EOF not_if "yum info wkhtmltox | grep Version | grep #{version}" end when /rhel-7\.(.*?)/ execute "download wkhtmltox-#{version}" do cwd '/var/daddy/tmp' command <<-EOF rm -f wkhtmltox-#{version}.centos7.x86_64.rpm wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/#{version.split('-').first}/wkhtmltox-#{version}.centos7.x86_64.rpm EOF not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "wkhtmltox-#{version}.centos7_sha256sum.txt")}" end execute "install wkhtmltox-#{version}" do cwd '/var/daddy/tmp' user 'root' command <<-EOF yum install -y wkhtmltox-#{version}.centos7.x86_64.rpm EOF not_if "yum info wkhtmltox | grep Version | grep #{version.split('-').first}" end end
Version data entries
11 entries across 11 versions & 1 rubygems