Sha256: 84c3fd0c050faeb55de423d4529e88d89c5b0697d258280d5e716d2fe49ecdee
Contents?: true
Size: 665 Bytes
Versions: 37
Compression:
Stored size: 665 Bytes
Contents
# coding: UTF-8 require 'rake' namespace :dad do namespace :phantomjs do desc "PhantomJSをインストールします。" task :install do name = 'phantomjs-1.9.7-linux-x86_64' file = "#{name}.tar.bz2" unless File.exist?("tmp/#{file}") system("wget https://bitbucket.org/ariya/phantomjs/downloads/#{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
37 entries across 37 versions & 1 rubygems