1.0.8 • Published 8 years ago

node-etcd-promise v1.0.8

Weekly downloads
34
License
MIT
Repository
github
Last release
8 years ago

node-etcd-promise

A promise wrapper of node-etcd.

example

etcd = new EtcdPromise(etcdServers, etcdOpts)
etcd.mkdir(path, {ttl: 60, prevExist: false}).then =>
  Promise.all [
    etcd.set("#{path}/raw",   JSON.stringify(@info)),
    etcd.set("#{path}/host",  HOST_NAME),
    etcd.set("#{path}/ports", JSON.stringify(@_ports)),
  ]
.catch =>
  etcd.mkdir(path, {ttl: 60, prevExist: true})
1.0.8

8 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago