pyar6329
7/9/2015 - 8:16 AM

pyramid_zsh_function

pyramid_zsh_function

function mk_pyramid(){
  mkdir "$1"
  cd "$1"
  pyvenv .venv
  source .venv/bin/activate
  pip install pyramid
  pcreate -s starter "$1"

  bundle install --path .bundle --without production --binstubs .bin
  bundle exec rails new "$1" --skip-test-unit --skip-bundle
  rm -rf .bin
  rm -rf .bundle
  rm -rf Gemfile
  rm -rf Gemfile.lock
  mv "$1"/.* .
  mv "$1"/* .
  rm -rf "$1"
}