etcd-ruby
etcd-ruby copied to clipboard
Clearing
Hi, I m trying to clear all stored keys & values, Could you tell me why none of these methods work ?
client.delete('/', true)
# or
client.get('/').children.each { |k| client.delete(k.key, true) }
I got the following error :
NoMethodError:
undefined method `map' for true:TrueClass
Did you mean? tap
# /Users/xxxxxxx/.rvm/gems/ruby-2.3.1/gems/etcd-0.3.0/lib/etcd/client.rb:151:in `build_http_request'
# /Users/xxxxxxx/.rvm/gems/ruby-2.3.1/gems/etcd-0.3.0/lib/etcd/client.rb:102:in `api_execute'
# /Users/xxxxxxx/.rvm/gems/ruby-2.3.1/gems/etcd-0.3.0/lib/etcd/keys.rb:48:in `delete'
It doesn't work with or without the recursive parameter on the delete method.
Any idea ? Best regards