routemaster/client/configuration.rb in routemaster-client-3.1.0 vs routemaster/client/configuration.rb in routemaster-client-3.1.1
- old
+ new
@@ -17,9 +17,15 @@
def configure
yield self
_validate_all_options!
end
+ def reset
+ %w[url uuid timeout async_backend lazy verify_ssl].each do |ivar|
+ remove_instance_variable :"@#{ivar}" if instance_variable_defined? :"@#{ivar}"
+ end
+ end
+
private
def _validate_all_options!
_assert_present! url: url, uuid: uuid
_assert_valid_url!(url)