Separated scripts into base-setup and rails-setup