softlayer / softlayer-ruby

http://softlayer.github.io/softlayer-ruby/
MIT License
54 stars 35 forks source link

Support multiple profiles #134

Closed smcavallo closed 6 years ago

smcavallo commented 6 years ago

Allow multiple profiles to exist in the softlayer credential file. The current implementation only allows one set of creds under a key of ['softlayer']

Proposed implementation allows multiple sets of credentials in the file using an environment variable of "SL_PROFILE" to determine which set to use. This is a standard pattern with credential files and ruby sdks. This allows credentials for multiple environments to be stored in the same file.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.004%) to 99.767% when pulling 06e2a3a282c74adb46e6e74b4c138e4521981356 on smcavallo:support_multiple_profiles into 78890529a77a3d659d68cfb03b06ba6d35be2e5f on softlayer:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.004%) to 99.767% when pulling 06e2a3a282c74adb46e6e74b4c138e4521981356 on smcavallo:support_multiple_profiles into 78890529a77a3d659d68cfb03b06ba6d35be2e5f on softlayer:master.

smcavallo commented 6 years ago

@SLsthompson - looking for a review and for a new version of the softlayer_api gem to be published to rubygems