Sha256: 058cbad6169aad5ef513977852e36f96e37e263ec8217d891cf664941392ba70
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
#!/usr/bin/env ruby executable = case RUBY_PLATFORM when /64.*linux/ 'wkhtmltopdf-linux-amd64' when /linux/ 'wkhtmltopdf-linux-x86' when /darwin/ 'wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf' else raise "Invalid platform. Must be running linux or intel-based Mac OS." end args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x } cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{executable}" exec "#{cmd} #{args.join(' ')}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wkhtmltopdf-binary-11-0.1.0 | bin/wkhtmltopdf |
wkhtmltopdf-binary-11-0.0.0 | bin/wkhtmltopdf |