Created
February 24, 2016 18:47
-
-
Save mrackwitz/9c567523d4576537f120 to your computer and use it in GitHub Desktop.
Poor man's pod env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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