Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wkhtmltopdf-binary / bin / wkhtmltopdf
Size: Mime:
#!/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(' ')}"