From 4ea24b3b12736c23dadedbfdcae7e20a95248f7b Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 1 Aug 2021 11:22:20 +0300 Subject: [PATCH] Some more Smile config. - AWS profile for aws-vault. - Seperate Gem directory. - Bundle config. --- .aws/config | 4 ++++ Documents/Smile/.envrc | 2 ++ Makefile | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/.aws/config b/.aws/config index e3e8789..6f2ec3b 100644 --- a/.aws/config +++ b/.aws/config @@ -1,4 +1,8 @@ [profile shore] region = us-east-1 + [profile smile] region = us-east-1 + +# For aws-vault +[profile smile-security] diff --git a/Documents/Smile/.envrc b/Documents/Smile/.envrc index 873c3ad..2db2c6a 100644 --- a/Documents/Smile/.envrc +++ b/Documents/Smile/.envrc @@ -3,3 +3,5 @@ export GIT_AUTHOR_NAME='Nimrod Adar' export GIT_AUTHOR_EMAIL='nimrod@smile.io' export AWS_DEFAULT_PROFILE=smile export AWS_PROFILE=smile +export GEM_HOME="$HOME/Repositories/Smile/.gem" +export PATH="$GEM_HOME/bin:$PATH" diff --git a/Makefile b/Makefile index 5cde15e..ec2c278 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,13 @@ all: .config/gem/gemrc echo ':verbose: true' >> '$@' echo ':concurrent_downloads: 8' >> '$@' +all: .bundle/config +.bundle/config: Documents/Database.kdbx + $(mkd) + echo '# vim:ft=yaml' > '$@' + echo '---' >> '$@' + echo "BUNDLE_HTTPS://RUBYGEMS__PKG__GITHUB__COM/SMILE-IO/: '$$(ph show --field 'UserName' 'Web Sites/GitHub'):$$(ph show --field 'Smile gem token' 'Web Sites/GitHub')'" >> '$@' + all: .aws/credentials .aws/credentials: Documents/Database.kdbx $(mkd) -- GitLab