etcd-tools 0.4.4 → 0.4.5

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.
@@ -12,7 +12,7 @@ module EtcdTools
12
12
 
13
13
  @options[:url] = ENV['ETCDCTL_ENDPOINT']
14
14
  @options[:url] ||= "http://127.0.0.1:2379"
15
- @options[:root_path] = "/config"
15
+ @options[:root_path] = "/"
16
16
 
17
17
  OptionParser.new do |opts|
18
18
  opts.banner = "Parses ETCD tree into structured YAML\n\nUsage: #{$0} [OPTIONS]"
@@ -23,7 +23,7 @@ module EtcdTools
23
23
  end
24
24
  opts.separator ""
25
25
  opts.separator "Common options:"
26
- opts.on("-r", "--root-path PATH", "root PATH of ETCD tree to extract the data from [DEFAULT: /config]") do |param|
26
+ opts.on("-r", "--root-path PATH", "root PATH of ETCD tree to extract the data from [DEFAULT: /]") do |param|
27
27
  @options[:root_path] = param
28
28
  end
29
29
  opts.on_tail("-h", "--help", "show usage") do |param|
@@ -38,7 +38,7 @@ module EtcdTools
38
38
 
39
39
  begin
40
40
  @etcd = etcd_connect @options[:url]
41
- rescue Etcd::ClusterConnectError
41
+ rescue ::Etcd::ClusterConnectError
42
42
  $stderr.puts "Failed to connect to ETCD cluster"
43
43
  exit! 1
44
44
  end
@@ -12,7 +12,7 @@ module EtcdTools
12
12
 
13
13
  @options[:url] = ENV['ETCDCTL_ENDPOINT']
14
14
  @options[:url] ||= "http://127.0.0.1:2379"
15
- @options[:root_path] = "/config"
15
+ @options[:root_path] = "/"
16
16
 
17
17
  OptionParser.new do |opts|
18
18
  opts.banner = "Reads YAML file and imports the data into ETCD\n\nUsage: #{$0} [OPTIONS] < config.yaml"
@@ -23,7 +23,7 @@ module EtcdTools
23
23
  end
24
24
  opts.separator ""
25
25
  opts.separator "Common options:"
26
- opts.on("-r", "--root-path PATH", "root PATH of ETCD tree to inject the data [DEFAULT: /config]") do |param|
26
+ opts.on("-r", "--root-path PATH", "root PATH of ETCD tree to inject the data [DEFAULT: /]") do |param|
27
27
  @options[:root_path] = param
28
28
  end
29
29
  opts.on_tail("-h", "--help", "show usage") do |param|
@@ -11,7 +11,7 @@ module EtcdTools
11
11
  next unless etcd.healthy?
12
12
  return etcd
13
13
  end
14
- raise Etcd::ClusterConnectError
14
+ raise ::Etcd::ClusterConnectError
15
15
  end
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etcd-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Radek 'blufor' Slavicinsky
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-05-01 00:00:00.000000000 Z
12
+ date: 2017-03-28 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: etcd
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -23,6 +25,7 @@ dependencies:
23
25
  type: :runtime
24
26
  prerelease: false
25
27
  version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
26
29
  requirements:
27
30
  - - ~>
28
31
  - !ruby/object:Gem::Version
@@ -33,46 +36,47 @@ dependencies:
33
36
  description: A set of handful command-line utils for ETCD + lib extensions
34
37
  email: radek.slavicinsky@gmail.com
35
38
  executables:
36
- - etcd2yaml
37
39
  - etcd-erb
40
+ - etcd2yaml
38
41
  - yaml2etcd
39
42
  extensions: []
40
43
  extra_rdoc_files: []
41
44
  files:
42
- - bin/etcd-erb
43
- - bin/etcd2yaml
44
- - bin/yaml2etcd
45
- - lib/etcd-tools.rb
46
45
  - lib/etcd-tools/cli/etcd2yaml.rb
47
46
  - lib/etcd-tools/cli/etcd_erb.rb
48
47
  - lib/etcd-tools/cli/yaml2etcd.rb
49
48
  - lib/etcd-tools/erb.rb
50
49
  - lib/etcd-tools/etcd.rb
51
- - lib/etcd-tools/mixins.rb
52
50
  - lib/etcd-tools/mixins/etcd.rb
53
51
  - lib/etcd-tools/mixins/hash.rb
52
+ - lib/etcd-tools/mixins.rb
53
+ - lib/etcd-tools.rb
54
+ - bin/etcd-erb
55
+ - bin/etcd2yaml
56
+ - bin/yaml2etcd
54
57
  homepage: https://github.com/blufor/etcd-tools
55
58
  licenses:
56
59
  - GPLv2
57
- metadata: {}
58
60
  post_install_message:
59
61
  rdoc_options: []
60
62
  require_paths:
61
63
  - lib
62
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
63
66
  requirements:
64
67
  - - ! '>='
65
68
  - !ruby/object:Gem::Version
66
69
  version: 1.9.3
67
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
68
72
  requirements:
69
73
  - - ! '>='
70
74
  - !ruby/object:Gem::Version
71
75
  version: '0'
72
76
  requirements: []
73
77
  rubyforge_project:
74
- rubygems_version: 2.4.3
78
+ rubygems_version: 1.8.25
75
79
  signing_key:
76
- specification_version: 4
80
+ specification_version: 3
77
81
  summary: ETCD tools
78
82
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmFhYjZjYjUzOTQ5MDE0ZWMwNDU5MWQzM2RjNDI4ODFjOWJiMmE4ZA==
5
- data.tar.gz: !binary |-
6
- ZTI2YjQ4OWNiZDQwZDIzOTRkMWQxNTJiNzY4YWI5MjFiOGNmM2YxZg==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- YTVkZmMzNDE3Yzc4MWIwZGNlOGFlY2UzZjc5NTEyNzdkZDMxZDk3YTc0OGQz
10
- MDNjYzk3ODNmNTNiYmVlNWZhNjRjZWRjYjI3MTM2NDQ4ODBhNjIwOWZmZjgw
11
- MDUzNmY0YWFjMWE3Y2MwMGVmYTJmYjdhMjEwN2RiYTBiM2UxM2U=
12
- data.tar.gz: !binary |-
13
- Y2Y2NDJiYTBhYmFiNGYwYmVmNDVmZGYyMGIwOTMzNjNlMTdlNmM3YjZlZWJj
14
- ZGYxMTAwNjFjOGI2NzdmYmE1YWM5YThjMjNmYWUyMWViOWYyMzI5ZTk3NzY4
15
- OThjYmQzMGJkYzk1N2E5ZWYyZTIwZmY0YmJkODYzYjcwODM5NTQ=