Skip to content

Instantly share code, notes, and snippets.

@alq666
Created August 29, 2012 22:39
Show Gist options
  • Save alq666/3519810 to your computer and use it in GitHub Desktop.
Save alq666/3519810 to your computer and use it in GitHub Desktop.
Deploy the dog cli in your home directory
#!/bin/bash -e
# Check python 2.6 or greater
python -V 2>&1 | awk '$2 !~ /^2.[67]|^3/ {exit 1}'
# Download virtualenv
curl https://raw.github.com/pypa/virtualenv/master/virtualenv.py > virtualenv.py
python virtualenv.py $HOME/datadog
source $HOME/datadog/bin/activate
# Install dogapi
pip install dogapi
# Set up the dog alias
echo 'alias dog="source ~/datadog/bin/activate && ~/datadog/bin/dog"' >> $HOME/.bashrc
# Clean up
rm virtualenv.py*
@alq666
Copy link
Author

alq666 commented Aug 30, 2012

curl -L http://dtdg.co/datadog-cli | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment