-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting client_id and api_key as environment variables in shell #176
Comments
Good idea, would be fairly easy to implement (just need to add something like def access_token
ENV['DIGITAL_OCEAN_ACCESS_TOKEN'] || @data['authentication']['access_token'] ||
end To the config code, I'll see if I can get that working after I've completed the API 2.0 stuff! 😄 |
Thanks Peter. If you can incorporate it as part of your API 2.0 release, it would be great. |
Peter, I tried it by setting DO_API_TOKEN as an environment variable and I'm getting the error below.
|
@stalluri Strange, I tested it and worked fine for me:
What version of the gem are you using? Are you using the repo itself or building the gem? |
Just to add more context, I tried the following as well :
I used the following to install tugboat |
Ah ok, yes this won't work until I release the gem, so it won't work with Or you can build it yourself in the mean time to test:
|
I will wait for official 2.0 release. |
Yep, I'm releasing before the 9th, just trying to get the user-data feature working first 😄 |
Fixed by #183 release |
Peter, I was trying set the api token using environment variable, and it's not working.
|
Which version of tugboat are you using? That works for me:
|
Thanks Peter for your quick response. Much appreciated. [neptune@ip-10-0-0-120 ~]$ which tugboat |
Usually most CLIs like aws, heroku etc support setting API keys as environment variable for shell scripting purposes. Does tugboat support such model ? If not, can some one help me how can I quickly fork and modify specific ruby files?
The text was updated successfully, but these errors were encountered: