Sha256: 1c90644b2193279cfb85ddcae907869db1fb2d002e94060de57ccbcf41fbb8ae

Contents?: true

Size: 656 Bytes

Versions: 9

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.0-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

9 entries across 9 versions & 1 rubygems

Version Path
daddy-0.1.6 lib/tasks/phantomjs.rake
daddy-0.1.5 lib/tasks/phantomjs.rake
daddy-0.1.4 lib/tasks/phantomjs.rake
daddy-0.1.3 lib/tasks/phantomjs.rake
daddy-0.1.2 lib/tasks/phantomjs.rake
daddy-0.1.1 lib/tasks/phantomjs.rake
daddy-0.1.0 lib/tasks/phantomjs.rake
daddy-0.0.22 lib/tasks/phantomjs.rake
daddy-0.0.21 lib/tasks/phantomjs.rake