lib/etcd/keys.rb in etcd-0.2.4 vs lib/etcd/keys.rb in etcd-0.3.0

- old
+ new

@@ -76,11 +76,15 @@ index = opts[:waitIndex] || opts[:index] params[:waitIndex] = index unless index.nil? params[:consistent] = opts[:consistent] if opts.key?(:consistent) params[:recursive] = opts[:recursive] if opts.key?(:recursive) - response = api_execute(key_endpoint + key, :get, - timeout: timeout, params: params) + response = api_execute( + key_endpoint + key, + :get, + timeout: timeout, + params: params + ) Response.from_http_response(response) end def create_in_order(dir, opts = {}) path = key_endpoint + dir