etcds 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c61c8cdb9d510b1947401ef2d5bc9bda5662dd0
4
- data.tar.gz: dda92c98c5f0e677c9c2fcf9cc84bd7982574256
3
+ metadata.gz: cb93256ea8426d24ac0a63b8e16eb8564a279b5a
4
+ data.tar.gz: 0dff28dc6ac10b152b37a15c6bd9ac5c752bd225
5
5
  SHA512:
6
- metadata.gz: c297809e94cb0f60b4bbd30644d7b9630b505cc9f69cc029617330d43975b5a1da9940d3ab43e69af79c624449d0f3a8763920dcda0cffbc0640efa86e42873a
7
- data.tar.gz: d2e1d9a41f1ae3c19dd9d700d6c98bb77d25a89d4778e09fd70869e7bdfa09c3ba5f89225008d90f915de33016a0375a9a9cf3adf20a8e21dc1a3df78dbdbcae
6
+ metadata.gz: 7032acc7fee334edaaa9bbd4564d5728761de9bce8e8b2cdbe298ceb1ed2ad996f7a9cd4a53c9534ae7c880487132bea658a036d324e5879e90b7d3814c92d53
7
+ data.tar.gz: 74b5c1c6816d666f36fa279956966090e451853e821e10bdbbee7e6a2a0e017d6182fce40c8f2e0d7da47c1e20f5dc45657740841839f5c719ae9219937a7117
data/README.md CHANGED
@@ -1,12 +1,16 @@
1
1
  # Etcds
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/etcds`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A etcd cluster manager.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
7
+ etcd depends on etcd-ca, so you should install it in advance like this:
8
+
9
+ ```
10
+ go get github.com/coreos/etcd-ca
11
+ ```
12
+
13
+ After that, add this line to your application's Gemfile:
10
14
 
11
15
  ```ruby
12
16
  gem 'etcds'
@@ -22,7 +26,24 @@ Or install it yourself as:
22
26
 
23
27
  ## Usage
24
28
 
25
- TODO: Write usage instructions here
29
+ Before run etcds command, you should prepare the configuration file
30
+ `etcds.yml` at current directory.
31
+
32
+ % etcds [sub command] [options] [args]
33
+
34
+ ```
35
+ Available sub commands:
36
+ ctl [name] commands pass commands to etcdctl
37
+ health show cluster health for all nodes
38
+ init prepare ca files for all nodes
39
+ install [names...] install ca files to the host
40
+ ls list up nodes
41
+ member show member list for all nodes
42
+ ps list up etcd containers
43
+ rm [names...] remove stopped nodes
44
+ stop [names...] stop nodes
45
+ up [names...] prepare and activate etcd
46
+ ```
26
47
 
27
48
  ## Development
28
49
 
data/bin/etcds CHANGED
@@ -1,5 +1,3 @@
1
1
  #!/usr/bin/ruby
2
- require 'rubygems'
3
- require 'bundler'
4
- Bundler.require
2
+ require 'etcds'
5
3
  Etcds.new.send *ARGV
data/lib/etcds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Etcds
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/etcds.rb CHANGED
@@ -9,7 +9,7 @@ class Etcds
9
9
  config = './etcds.yml'
10
10
  case ARGV.first
11
11
  when '-f'; _, config = ARGV.slice! 0, 2
12
- when '-v'; puts "etcds version 0.1.0"; exit
12
+ when '-v'; puts "etcds version #{VERSION}"; exit
13
13
  when '-h', nil
14
14
  system "#{$0} -v"
15
15
  system "etcd-ca -v"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etcds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi