Sha256: 1d6ebb89ea87e5cf2087e103b16bbb492edfad81572b7ee256049e61f8971bba

Contents?: true

Size: 610 Bytes

Versions: 32

Compression:

Stored size: 610 Bytes

Contents

require 'rake'

namespace :dad do
  namespace :phantomjs do

    desc "PhantomJSをインストールします。"
    task :install do
      name = 'phantomjs-1.9.8-linux-x86_64'
      file = "#{name}.tar.bz2"

      run "wget https://bitbucket.org/ariya/phantomjs/downloads/#{file} -O tmp/#{file}" unless File.exist?("tmp/#{file}")
      run "rm -Rf tmp/#{name}",
          "cd tmp && tar jxf #{file}"

      run "sudo cp -f tmp/#{name}/bin/phantomjs /usr/local/bin/phantomjs",
          "sudo chown root:root /usr/local/bin/phantomjs",
          "sudo chmod 755 /usr/local/bin/phantomjs"
    end

  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
daddy-0.3.28 lib/tasks/phantomjs.rake
daddy-0.3.27 lib/tasks/phantomjs.rake
daddy-0.3.26 lib/tasks/phantomjs.rake
daddy-0.3.25 lib/tasks/phantomjs.rake
daddy-0.3.24 lib/tasks/phantomjs.rake
daddy-0.3.23 lib/tasks/phantomjs.rake
daddy-0.3.22 lib/tasks/phantomjs.rake
daddy-0.3.21 lib/tasks/phantomjs.rake
daddy-0.3.20 lib/tasks/phantomjs.rake
daddy-0.3.19 lib/tasks/phantomjs.rake
daddy-0.3.18 lib/tasks/phantomjs.rake
daddy-0.3.17 lib/tasks/phantomjs.rake