Sha256: 3fdadda7c85e29b067c36fdbb6cee1ea9a7998c28d71bbb848de7b957dc37d98

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

#!/usr/bin/env ruby

arch = case RUBY_PLATFORM
  when /64.*linux/
    'linux-amd64'
  when /linux/
    'linux-x86'
  when /darwin/
    'darwin-x86'
  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/wkhtmltopdf-#{arch}"

exec "#{cmd} #{args.join(' ')}"

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wkhtmltopdf-binary-edge-0.12.2.1 bin/wkhtmltopdf
set_wkhtmltopdf-binary-0.9.9 bin/wkhtmltopdf