Sha256: f96858e09c9f8c136e4d27866a10225e05d57c55f8975c97a3ad64131787c80c

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents

#!/usr/bin/env ruby

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
truex-wkhtmltopdf-binary-0.12.1 bin/wkhtmltopdf