Repository URL to install this package:
|
Version:
0.12.1 ▾
|
#!/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(' ')}"