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.4.9 lib/tasks/phantomjs.rake
daddy-0.4.8 lib/tasks/phantomjs.rake
daddy-0.4.7 lib/tasks/phantomjs.rake
daddy-0.4.6 lib/tasks/phantomjs.rake
daddy-0.4.5 lib/tasks/phantomjs.rake
daddy-0.4.4 lib/tasks/phantomjs.rake
daddy-0.4.3 lib/tasks/phantomjs.rake
daddy-0.4.2 lib/tasks/phantomjs.rake
daddy-0.4.1 lib/tasks/phantomjs.rake
daddy-0.4.0 lib/tasks/phantomjs.rake
daddy-0.3.38 lib/tasks/phantomjs.rake
daddy-0.3.37 lib/tasks/phantomjs.rake
daddy-0.3.36 lib/tasks/phantomjs.rake
daddy-0.3.35 lib/tasks/phantomjs.rake
daddy-0.3.34 lib/tasks/phantomjs.rake
daddy-0.3.33 lib/tasks/phantomjs.rake
daddy-0.3.32 lib/tasks/phantomjs.rake
daddy-0.3.31 lib/tasks/phantomjs.rake
daddy-0.3.30 lib/tasks/phantomjs.rake
daddy-0.3.29 lib/tasks/phantomjs.rake