Sha256: b3df5845fd8c7ad9327d4ed00b2a80c5f825260801f1251c72041f14146f6ad7
Contents?: true
Size: 656 Bytes
Versions: 17
Compression:
Stored size: 656 Bytes
Contents
# coding: UTF-8 require 'rake' namespace :dad do namespace :phantomjs do desc "PhantomJSをインストールします。" task :install do name = 'phantomjs-1.9.1-linux-x86_64' file = "#{name}.tar.bz2" unless File.exist?("tmp/#{file}") system("wget https://phantomjs.googlecode.com/files/#{file} -O tmp/#{file}") end system("rm -Rf tmp/#{name}") system("cd tmp && tar jxf #{file}") system("sudo cp -f tmp/#{name}/bin/phantomjs /usr/local/bin/phantomjs") system("sudo chown root:root /usr/local/bin/phantomjs") system("sudo chmod 755 /usr/local/bin/phantomjs") end end end
Version data entries
17 entries across 17 versions & 1 rubygems