Sha256: 359ba906bee3d82fd7447634cc764e92e6544ecac4238f85a081bd3631889633

Contents?: true

Size: 1.05 KB

Versions: 18

Compression:

Stored size: 1.05 KB

Contents

#!/bin/sh

function puts() {
  echo -e $1 >&2
}

function install_package() {
if which pacman > /dev/null; then
  if [ -z "$(pacman -Ss "^$1\$" | grep installed)" ]; then
    puts "Installing $1"
    sudo pacman -S --noconfirm $1
  fi
else
  puts "Please install $1 from your operating system repository."
fi
}

function install_gem() {
if which gem > /dev/null; then
  if [ -z "$(gem list -l "^$1\$")" ]; then
    puts "Installing $1"
    gem install --no-ri --no-rdoc $1
  fi
else
  puts "Please install $1 via rubygems."
fi
}

function install_node() {
if which npm > /dev/null; then
  if [ -z "$(npm list -g $1 | grep bower)" ]; then
    puts "Installing $1"
    npm install -g $1 
  fi
else
  puts "Please install $1 via npm"
fi
}

function file_exist() {
if [ -f $1 ]; then
  puts "$2"
  return 0
else
  puts "Warning file \"$1\" does not exist. Maybe this can cause problems during bootstrapping"
  return 1
fi
}

echo "Bootstrapping development environment for application.." >&2

install_package ruby
install_package phantomjs

install_gem bundler
bundle install

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
proxy_tester-0.1.10 script/bootstrap
proxy_tester-0.1.8 script/bootstrap
proxy_tester-0.1.6 script/bootstrap
proxy_tester-0.1.5 script/bootstrap
proxy_tester-0.1.4 script/bootstrap
proxy_tester-0.1.3 script/bootstrap
proxy_tester-0.1.2 script/bootstrap
proxy_tester-0.1.1 script/bootstrap
proxy_tester-0.1.0 script/bootstrap
proxy_tester-0.0.9 script/bootstrap
proxy_tester-0.0.8 script/bootstrap
proxy_tester-0.0.7 script/bootstrap
proxy_tester-0.0.6 script/bootstrap
proxy_tester-0.0.5 script/bootstrap
proxy_tester-0.0.4 script/bootstrap
proxy_tester-0.0.3 script/bootstrap
proxy_tester-0.0.2 script/bootstrap
proxy_tester-0.0.1 script/bootstrap