first commit

This commit is contained in:
Blake Ridgway 2020-09-11 22:12:49 -05:00
commit e7410994a3
67 changed files with 5154 additions and 0 deletions

12
ruby-install/README.md Normal file
View file

@ -0,0 +1,12 @@
# Ruby & rbenv Installation
There is currently two parts to get this to work.
`install` & `rbenv-install`
The first part that needs to be ran is `install`. This will install the
requirements needed to complete the installation with `rbenv-install`.
# Disclaimer
This is currently **ONLY** set to work with zsh.

20
ruby-install/install Executable file
View file

@ -0,0 +1,20 @@
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.zshrc
echo "#####################################################"
echo "# Please restart your shell or run 'exec $SHELL' #"
echo "# Then run the second script. rbenv-install #"
echo "#####################################################"

17
ruby-install/rbenv-install Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# Installs rbenv
rbenv install 2.7.1
rbenv global 2.7.1
ruby -v
# Insalls Bundler
gem install bundler
rbenv rehash
# Installs Rails Version 6.
gem install rails -v 6.0.2.2
rbenv rehash