Skip to content

added failover strategy#48

Merged
bartes merged 7 commits intomasterfrom
failovers
Aug 2, 2017
Merged

added failover strategy#48
bartes merged 7 commits intomasterfrom
failovers

Conversation

@bartes
Copy link
Copy Markdown
Contributor

@bartes bartes commented Jul 27, 2017

No description provided.

@bartes bartes requested review from lluft and nijikon July 27, 2017 14:18

module Castle
# generate fake authentication response
class FakeAuthResponse
Copy link
Copy Markdown
Contributor

@lluft lluft Jul 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartes I'd prefer calling this FailoverAuthRespsonse

@bartes
Copy link
Copy Markdown
Contributor Author

bartes commented Jul 28, 2017

TODO: added readme and changelog information

Copy link
Copy Markdown
Contributor

@lluft lluft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the error message is changed it's ready to merge


def failover_strategy=(value)
@failover_strategy = FAILOVER_STRATEGIES.detect { |strategy| strategy == value.to_sym }
raise Castle::ConfigurationError, 'there is no such a strategy' if @failover_strategy.nil?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the error message to unrecognized failover strategy.

@bartes
Copy link
Copy Markdown
Contributor Author

bartes commented Jul 31, 2017

@lluft - done but this PR is build on the top of context object so it can be merged to #46 or to the master when contexts objects are merged there.

@bartes bartes changed the base branch from context_objects to master August 2, 2017 20:12
@bartes bartes merged commit 0638c15 into master Aug 2, 2017
@bartes bartes deleted the failovers branch August 2, 2017 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants