aeolus-incubator / thor-cli

Revamp of cli tooling for aeolus conductor
2 stars 5 forks source link

DRY ActiveResource decode methods #40

Open jistr opened 11 years ago

jistr commented 11 years ago

A lot of the XML decode methods [1] will probably repeat itself across models, so we could extract it as common behavior.

[1] https://github.com/aeolus-incubator/thor-cli/blob/master/lib/aeolus_cli/model/provider.rb#L4-L29

EDIT after pblaho's comment:

Here's a permalink: https://github.com/aeolus-incubator/thor-cli/blob/e7b65db7573dea8fafd5d182d9ff06ef1c695b1b/lib/aeolus/client/provider.rb#L6-L31

petrblaho commented 11 years ago

Link is no longer valid after renaming of files.

Here is new one - https://github.com/aeolus-incubator/thor-cli/blob/master/lib/aeolus/client/provider.rb#L6-L31