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

Version Path
daddy-0.2.1 lib/tasks/phantomjs.rake
daddy-0.1.26 lib/tasks/phantomjs.rake
daddy-0.1.25 lib/tasks/phantomjs.rake
daddy-0.1.24 lib/tasks/phantomjs.rake
daddy-0.1.23 lib/tasks/phantomjs.rake
daddy-0.1.22 lib/tasks/phantomjs.rake
daddy-0.1.20 lib/tasks/phantomjs.rake
daddy-0.1.18 lib/tasks/phantomjs.rake
daddy-0.1.17 lib/tasks/phantomjs.rake
daddy-0.1.15 lib/tasks/phantomjs.rake
daddy-0.1.14 lib/tasks/phantomjs.rake
daddy-0.1.13 lib/tasks/phantomjs.rake
daddy-0.1.12 lib/tasks/phantomjs.rake
daddy-0.1.11 lib/tasks/phantomjs.rake
daddy-0.1.9 lib/tasks/phantomjs.rake
daddy-0.1.8 lib/tasks/phantomjs.rake
daddy-0.1.7 lib/tasks/phantomjs.rake