Sha256: 9a26de8fe31c9f64ad6c960048f361ee7bd8de143cc0791149660b0832a13139

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

#!/usr/bin/env ruby

executable = case RUBY_PLATFORM
  when /64.*linux/
    'wkhtmltopdf_linux_amd64'
  when /linux/
    'wkhtmltopdf_linux_386'
  when /darwin/
    'wkhtmltopdf_darwin_386'
  else
    raise "Invalid platform. Must be running linux or intel-based Mac OS."
end

arguments = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }

executable = File.join(File.dirname(__FILE__), executable)
r = system(executable + " " + arguments.join(" "))

exit r ? 0 : 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
finalist-wkhtmltopdf-0.9.9 bin/wkhtmltopdf