sihil/hiera-eyaml-gpg — pull request #9 by rooprob (2013-11-25 23:01:19+00:00)
Title: [FIX] keys map not being set correctly

Hi

(second try with rebased commit)

Just a quick fix for a bug I found when encrypting. Looks like the recent 0.3 patch doesn't map the recipient keys correctly leading to the following error,
```
/Library/Ruby/Gems/1.8/gems/hiera-eyaml-gpg-0.3/lib/hiera/backend/eyaml/encryptors/gpg.rb:108:in encrypt': undefined local variable or methodkey' for Hiera::Backend::Eyaml::Encryptors::Gpg:Class (NameError)
from /Library/Ruby/Gems/1.8/gems/hiera-eyaml-gpg-0.3/lib/hiera/backend/eyaml/encryptors/gpg.rb:106:in map'
from /Library/Ruby/Gems/1.8/gems/hiera-eyaml-gpg-0.3/lib/hiera/backend/eyaml/encryptors/gpg.rb:106:inencrypt'
from /Library/Ruby/Gems/1.8/gems/hiera-eyaml-1.3.8/lib/hiera/backend/eyaml/parser/encrypted_tokens.rb:20:in decrypted_value'
from /Library/Ruby/Gems/1.8/gems/hiera-eyaml-1.3.8/lib/hiera/backend/eyaml/parser/encrypted_tokens.rb:120:increate_token'
from /Library/Ruby/Gems/1.8/gems/hiera-eyaml-1.3.8/lib/hiera/backend/eyaml/parser/parser.rb:71:in `parse_sca
```