#!/usr/bin/env ruby

brews = %w{
  autoconf
  automake
  bash
  boot2docker
  curl
  docker
  docker-compose
  elasticsearch
  faac
  ffmpeg
  freetype
  freexl
  gdal
  gdbm
  geos
  giflib
  git
  git-extras
  git-flow
  gnupg
  jpeg
  json-c
  lame
  libevent
  libgeotiff
  libgpg-error
  libksba
  liblwgeom
  libpng
  libspatialite
  libtiff
  libtool
  libxml2
  libyaml
  lzlib
  mongodb
  node
  openssl
  ossp-uuid
  pkg-config
  postgresql
  proj
  python
  readline
  reattach-to-user-namespace
  redis
  scons
  selenium-server-standalone
  sqlite
  tmux
  vim
  wget
  x264
  xvid
  youtube-dl
}

INSTALLED_BREWS = `brew list`.split("\n")

# update brew
puts `brew update`
# upgrade any already-installed formulae
puts `brew upgrade`

brews.each do |brew|
  if INSTALLED_BREWS.include?(brew)
    puts "#{brew} already installed"
  else
    puts "Installing #{brew}"
    puts `brew install #{brew}`
  end

end

# Remove outdated versions from the cellar
puts `brew cleanup`
puts `brew prune`

#!/usr/bin/env ruby

brews = %w{
  autoconf
  automake
  bash
  curl
  elasticsearch
  faac
  ffmpeg
  freetype
  freexl
  gdal
  gdbm
  geos
  giflib
  git
  git-extras
  git-flow
  gnupg
  jpeg
  json-c
  lame
  libevent
  libgeotiff
  libgpg-error
  libksba
  liblwgeom
  libpng
  libspatialite
  libtiff
  libtool
  libxml2
  libyaml
  lzlib
  mongodb
  node
  openssl
  ossp-uuid
  pkg-config
  postgresql
  proj
  python
  readline
  reattach-to-user-namespace
  redis
  scons
  selenium-server-standalone
  sqlite
  tmux
  vim
  wget
  x264
  xvid
  youtube-dl
}

INSTALLED_BREWS = `brew list`.split("\n")

# update brew
puts `brew update`
# upgrade any already-installed formulae
puts `brew upgrade`

brews.each do |brew|
  if INSTALLED_BREWS.include?(brew)
    puts "#{brew} already installed"
  else
    puts "Installing #{brew}"
    puts `brew install #{brew}`
  end

end

# Remove outdated versions from the cellar
puts `brew cleanup`
puts `brew prune`

--- 
+++ 
@@ -4,7 +4,10 @@
   autoconf
   automake
   bash
+  boot2docker
   curl
+  docker
+  docker-compose
   elasticsearch
   faac
   ffmpeg
Add docker to brew packages
