This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/rspec' | |
require 'capybara/poltergeist' | |
require 'csv' | |
require 'pry' | |
include Capybara::DSL | |
Capybara.register_driver :poltergeist do |app| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
sudo add-apt-repository ppa:dlecan/openjdk | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.7.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install pre-requisites | |
apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev | |
Download and install | |
cd /usr/local/src | |
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz | |
tar zxvf ruby-1.8.6.tar.gz |