mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Update repo structure as part of nixification
This commit is contained in:
parent
49e67c64fb
commit
cc0efcfdde
56 changed files with 181 additions and 154 deletions
22
legacy/bin/bootstrap/bootstrap_el.sh
Executable file
22
legacy/bin/bootstrap/bootstrap_el.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $1 == 'now' ]]; then
|
||||
# Install dot's dependencies
|
||||
sudo yum install -y centos-release-scl-rh.noarch
|
||||
sudo yum install rh-ruby26 rh-ruby26-ruby-devel rh-ruby26-rubygem-bundler rh-ruby26-rubygem-rake cmake gcc
|
||||
|
||||
# Make dot usable
|
||||
cd ~/.dotfiles
|
||||
cat bin/sclbundle|sudo tee /usr/local/bin/dotbundle > /dev/null
|
||||
sudo chmod a+x /usr/local/bin/dotbundle
|
||||
cat bin/sclruby|sudo tee /usr/local/bin/dotruby > /dev/null
|
||||
sudo chmod a+x /usr/local/bin/dotruby
|
||||
/usr/local/bin/dotbundle install
|
||||
|
||||
# Install Puppet modules
|
||||
/usr/local/bin/dotbundle exec rake dots:run_r10k
|
||||
|
||||
# Display tasks that can be run
|
||||
echo 'These are the task that can now be executed:'
|
||||
/usr/local/bin/dotbundle exec rake -T |grep --color=never 'rake dots'
|
||||
fi
|
||||
21
legacy/bin/bootstrap/bootstrap_mac.sh
Executable file
21
legacy/bin/bootstrap/bootstrap_mac.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $1 == 'now' ]]; then
|
||||
# Install Homebrew
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
|
||||
# Install dot's dependencies
|
||||
/usr/local/bin/brew install ruby@2.7 cmake pkg-config
|
||||
/usr/local/bin/gem install --no-ri --no-rdoc bundler
|
||||
|
||||
# Make dot usable
|
||||
cd ~/.dotfiles
|
||||
/usr/local/bin/bundle install
|
||||
|
||||
# Install Puppet modules
|
||||
/usr/local/bin/bundle exec rake dots:run_r10k
|
||||
|
||||
# Display tasks that can be run
|
||||
echo 'These are the task that can now be executed:'
|
||||
/usr/local/bin/bundle exec rake -T |grep --color=never 'rake dots'
|
||||
fi
|
||||
21
legacy/bin/bootstrap/bootstrap_mint.sh
Executable file
21
legacy/bin/bootstrap/bootstrap_mint.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $1 == 'now' ]]; then
|
||||
# Install dot's dependencies
|
||||
sudo apt-add-repository ppa:brightbox/ruby-ng
|
||||
sudo apt-get update
|
||||
sudo apt-get install ruby2.4 ruby2.4-dev ruby-switch cmake build-essential
|
||||
sudo ruby-switch --set ruby2.4
|
||||
sudo gem install --no-ri --no-rdoc bundler
|
||||
|
||||
# Make dot usable
|
||||
cd ~/.dotfiles
|
||||
bundle install
|
||||
|
||||
# Install Puppet modules
|
||||
bundle exec rake dots:run_r10k
|
||||
|
||||
# Display tasks that can be run
|
||||
echo 'These are the task that can now be executed:'
|
||||
bundle exec rake -T |grep --color=never 'rake dots'
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue