Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Add development scripts (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-lane authored May 25, 2019
1 parent d4cbca3 commit 39c6283
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
**/.terraform/
**/inspec.lock
**/terraform.tfstate
bin/
build/
certs/gem-private_key.pem
coverage/
Expand All @@ -26,4 +25,5 @@ terraform.tfstate.d/
test/terraform/Plug Ins/Plug In Directory/
tmp/
vendor/
/.bundle
/.bundle

5 changes: 5 additions & 0 deletions bin/list-undocumented-objects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e
bundle exec yard stats --list-undoc

11 changes: 11 additions & 0 deletions bin/switch-ruby-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e
source /usr/local/share/chruby/chruby.sh
chruby $1
if [ -e .bundle/config ]
then
rm .bundle/config
fi
bundle config --local gemfile $1/Gemfile

11 changes: 11 additions & 0 deletions bin/update-development-gems.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e
source /usr/local/share/chruby/chruby.sh
echo ruby-2.6
chruby ruby-2.6
set -x
gem update --system
gem install --version="~> 2.0" bundler
gem install debride fasterer rcodetools fastri reek

19 changes: 19 additions & 0 deletions bin/update-gemfile-locks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -e
source /usr/local/share/chruby/chruby.sh
set +x
for RUBY in ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3
do
chruby "$RUBY"
ruby --version
set -x
if [ -e "$RUBY"/Gemfile.lock ]
then
bundle update --gemfile "$RUBY"/Gemfile
else
bundle install --gemfile "$RUBY"/Gemfile
fi
set +x
done

0 comments on commit 39c6283

Please sign in to comment.