Sha256: 370b05349e12813538a233cf6856ccb09d418bee3589efa57200399ae1aac27d

Contents?: true

Size: 955 Bytes

Versions: 17

Compression:

Stored size: 955 Bytes

Contents

Standup.script :node do
  def run
    return if file_exists?('/usr/local/bin/wkhtmltopdf')

    install_packages 'openssl build-essential xorg libssl-dev'

    in_temp_dir do
      #Linux ip-10-83-19-167 2.6.32-309-ec2 #18-Ubuntu SMP Mon Oct 18 21:00:20 UTC 2010 i686 GNU/Linux
      #Linux ip-10-34-41-127 2.6.32-316-ec2 #31-Ubuntu SMP Wed May 18 14:10:36 UTC 2011 x86_64 GNU/Linux
      if exec('uname -a') =~ /x86_64/
        exec 'wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2'
        exec 'tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2'
        sudo 'mv wkhtmltopdf-amd64 /usr/local/bin/wkhtmltopdf'
      else
        exec 'wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-i386.tar.bz2'
        exec 'tar xvjf wkhtmltopdf-0.9.9-static-i386.tar.bz2'
        sudo 'mv wkhtmltopdf-i386 /usr/local/bin/wkhtmltopdf'
      end
    end

    sudo 'chmod +x /usr/local/bin/wkhtmltopdf'
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/wkhtmltopdf.rb
standup-0.6.8 scripts/wkhtmltopdf.rb
standup-0.6.7 scripts/wkhtmltopdf.rb
standup-0.6.6 scripts/wkhtmltopdf.rb
standup-0.6.5 scripts/wkhtmltopdf.rb
standup-0.6.4 scripts/wkhtmltopdf.rb
standup-0.6.3 scripts/wkhtmltopdf.rb
standup-0.6.2 scripts/wkhtmltopdf.rb
standup-0.6.1 scripts/wkhtmltopdf.rb
standup-0.6.0 scripts/wkhtmltopdf.rb
standup-0.5.14 scripts/wkhtmltopdf.rb
standup-0.5.13 scripts/wkhtmltopdf.rb
standup-0.5.11 scripts/wkhtmltopdf.rb
standup-0.5.10 scripts/wkhtmltopdf.rb
standup-0.5.9 scripts/wkhtmltopdf.rb
standup-0.5.8 scripts/wkhtmltopdf.rb
standup-0.5.7 scripts/wkhtmltopdf.rb