Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Data store instances #21

Merged
merged 2 commits into from May 29, 2012
Merged

Conversation

dan-manges
Copy link
Contributor

I think it would be better to instantiate data stores rather than have class methods with state stored on the class. As one example of why: right now it would be impossible to connect to multiple Mongo databases with Curator. I think getting rid of the class methods will also allow us to simplify testing setup, removing the need for with_config and the calls to data_store.instance_variable_set(:@client, nil) in the mongo specs. If this change is pulled in, I'll follow up with some additional commits to clean those things up.

This branch includes the commit from the dan-manges:find_by_index_rename branch. If necessary, I can implement this branch independently of that commit.

pgr0ss added a commit that referenced this pull request May 29, 2012
@pgr0ss pgr0ss merged commit 10e5b78 into braintree:master May 29, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants