Skip to content

Instantly share code, notes, and snippets.

@mrackwitz
Created February 24, 2016 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrackwitz/9c567523d4576537f120 to your computer and use it in GitHub Desktop.
Save mrackwitz/9c567523d4576537f120 to your computer and use it in GitHub Desktop.
Poor man's pod env
# Note: This script makes compromises.
# Default to `pod env` if available.
# If you use Bundler, run it with `bundle exec`.
INDENT=' '
function indent() {
sed "2,\$s/^/$INDENT/"
}
function repos {
for f in $(find ~/.cocoapods/repos/* -type d -maxdepth 0); do
cd "$f"
echo "$(basename $f) - $(git config --get remote.origin.url) - $(git rev-parse --short HEAD 2>&1)"
done
}
echo "### Stack
\`\`\`
CocoaPods : $(pod --version)
Ruby : $(ruby -v)
RubyGems : $(gem -v)
Host : $(sw_vers | indent)
Xcode : $(xcodebuild -version | indent)
Git : $(git --version)
Repositories : $(repos | indent)
\`\`\`
### Installation Source
\`\`\`
Executable Path: $(which pod)
\`\`\`
### Plugins
\`\`\`
$(gem list | grep --color=never 'cocoapods-' | column -t)
\`\`\`
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment