orta / cocoapods-keys

A key value store for storing per-developer environment and application keys
MIT License
1.55k stars 92 forks source link

Adds export command. #120

Closed ashfurrow closed 9 years ago

ashfurrow commented 9 years ago

Usage is documented; it works like this:

> pod keys export
pod keys set ArtsyAPIClientSecret - Eidolon
pod keys set ArtsyAPIClientKey - Eidolon
pod keys set HockeyProductionSecret - Eidolon
pod keys set HockeyBetaSecret - Eidolon
pod keys set MixpanelProductionAPIClientKey - Eidolon
pod keys set MixpanelStagingAPIClientKey - Eidolon
pod keys set CardflightStagingAPIClientKey - Eidolon
pod keys set CardflightStagingMerchantAccountToken - Eidolon
pod keys set StripeStagingPublishableKey - Eidolon
pod keys set CardflightProductionAPIClientKey - Eidolon
pod keys set CardflightProductionMerchantAccountToken - Eidolon
pod keys set StripeProductionPublishableKey - Eidolon

Where the - is actually the real key (they're all OSS keys in this example). Now we can copy+paste this output into 1Password and use it to set up new machines.

Fixes #118.

orta commented 9 years ago

worth quoting the output keys - they could contain spaces. pod keys set StripeProductionPublishableKey "-" Eidolon

ashfurrow commented 9 years ago

good idea!

orta commented 9 years ago

Otherwise looks awesome. And Green. Ace.

ashfurrow commented 9 years ago

Cool, pushed up a change. Let me know what you think of using <<- as I have. The indentation looks weird but I'm not sure how to fix it.

Side note: I really really liked rubocop telling me what the style was of the repo, and in general what "good ruby" looks like (to you at least :stuck_out_tongue:). It was nice, as someone not as familiar with the practices, to have a computer tell me instead of a person.

orta commented 9 years ago

DESC like that is totally natural and ruby-like, all OK.

Glad to have the perspective, cause if you sit with me and alloy you'll hear a bunch of whining about rubocop ;)

ashfurrow commented 9 years ago

Haha, totally. I just mean that the <<-EOS needs to have no indentation, which looks weird.

screen shot 2015-11-07 at 12 47 11 pm

Is there a way to maintain indentation within these blocks?

ashfurrow commented 9 years ago

Also, would you mind pushing up a release when you have a moment?

orta commented 9 years ago

done