fcoury / octopi

A Ruby interface to GitHub API v2
http://hasmany.info/2009/4/18/ruby-interface-to-github-api
MIT License
216 stars 47 forks source link

Consider Honouring ENV['OCTOPI_DEBUG'] for Tracing Pref #17

Open runpaint opened 15 years ago

runpaint commented 15 years ago

We should probably respect an environment variable whose value is the type of tracing the user wants. This leaves the config files for permanent preferences, such as credentials, and frees client implementations from debug logic. IOW:

$ OCTOPI_DEBUG=curl some-client
bcalloway commented 15 years ago

To add to that, it would make the gem a lot cleaner if a user could also setup the project (repo) name in the github.yml file, or put all credential info including repo name as env variables. A rake task on the project to generate the yml file and place it in the config dir would simplify the process. Just my $.02.

fcoury commented 15 years ago

Wow! You guys are adding quality ideas! :-) I need more time for this baby!