hieracles 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile +2 -0
  4. data/README.md +54 -8
  5. data/bin/hc +12 -6
  6. data/bin/ppdb +42 -0
  7. data/hc.1 +50 -8
  8. data/lib/hieracles.rb +2 -2
  9. data/lib/hieracles/config.rb +31 -19
  10. data/lib/hieracles/format.rb +4 -0
  11. data/lib/hieracles/formats/console.rb +49 -16
  12. data/lib/hieracles/formats/csv.rb +12 -8
  13. data/lib/hieracles/formats/json.rb +19 -6
  14. data/lib/hieracles/formats/plain.rb +24 -3
  15. data/lib/hieracles/formats/rawyaml.rb +4 -0
  16. data/lib/hieracles/formats/yaml.rb +4 -0
  17. data/lib/hieracles/node.rb +55 -10
  18. data/lib/hieracles/notification.rb +31 -0
  19. data/lib/hieracles/options/hc.rb +109 -0
  20. data/lib/hieracles/options/ppdb.rb +32 -0
  21. data/lib/hieracles/optparse.rb +4 -43
  22. data/lib/hieracles/puppetdb.rb +12 -0
  23. data/lib/hieracles/puppetdb/apierror.rb +10 -0
  24. data/lib/hieracles/puppetdb/client.rb +63 -0
  25. data/lib/hieracles/puppetdb/filter.rb +15 -0
  26. data/lib/hieracles/puppetdb/fixsslconnectionadapter.rb +25 -0
  27. data/lib/hieracles/puppetdb/query.rb +79 -0
  28. data/lib/hieracles/puppetdb/request.rb +44 -0
  29. data/lib/hieracles/puppetdb/response.rb +14 -0
  30. data/ppdb.1 +158 -0
  31. data/spec/files/config.yml +2 -0
  32. data/spec/files/config_withdb.yml +9 -0
  33. data/spec/files/facts.json +110 -0
  34. data/spec/files/facts.yaml +103 -0
  35. data/spec/files/hiera_columns.yaml +16 -0
  36. data/spec/files/hiera_deep.yaml +17 -0
  37. data/spec/files/hiera_deeper.yaml +17 -0
  38. data/spec/files/ssl/bad-ca.crt +1 -0
  39. data/spec/files/ssl/bad-cert.crt +1 -0
  40. data/spec/files/ssl/bad-key.pem +1 -0
  41. data/spec/files/ssl/ca.crt +16 -0
  42. data/spec/files/ssl/cert.crt +16 -0
  43. data/spec/files/ssl/key-pass.pem +18 -0
  44. data/spec/files/ssl/key.pem +15 -0
  45. data/spec/lib/config_spec.rb +51 -11
  46. data/spec/lib/format_spec.rb +5 -0
  47. data/spec/lib/formats/console_spec.rb +24 -3
  48. data/spec/lib/formats/csv_spec.rb +15 -0
  49. data/spec/lib/formats/json_spec.rb +22 -2
  50. data/spec/lib/formats/plain_spec.rb +23 -3
  51. data/spec/lib/formats/rawyaml_spec.rb +13 -0
  52. data/spec/lib/formats/yaml_spec.rb +138 -48
  53. data/spec/lib/hiera_spec.rb +0 -1
  54. data/spec/lib/hieracles_spec.rb +8 -0
  55. data/spec/lib/interpolate_spec.rb +49 -0
  56. data/spec/lib/node_spec.rb +50 -9
  57. data/spec/lib/notification_spec.rb +29 -0
  58. data/spec/lib/options/hc_spec.rb +82 -0
  59. data/spec/lib/optparse_spec.rb +7 -7
  60. data/spec/lib/puppetdb/apierror_spec.rb +11 -0
  61. data/spec/lib/puppetdb/client_spec.rb +64 -0
  62. data/spec/lib/puppetdb/fixsslconnectionadapter_spec.rb +107 -0
  63. data/spec/lib/puppetdb/query_spec.rb +39 -0
  64. data/spec/lib/puppetdb/request_spec.rb +61 -0
  65. data/spec/lib/puppetdb/response_spec.rb +13 -0
  66. data/spec/spec_helper.rb +4 -4
  67. metadata +133 -30
  68. data/Rakefile +0 -14
  69. data/hieracles.gemspec +0 -90
  70. data/lib/hieracles/help.rb +0 -38
  71. data/spec/lib/help_spec.rb +0 -8
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe Hieracles::Puppetdb::Query do
4
+
5
+ describe '.new' do
6
+ let(:elements) { [ 'something=value' ] }
7
+ let(:query) { Hieracles::Puppetdb::Query.new elements }
8
+ before {
9
+ allow(query).
10
+ to receive(:parse).
11
+ with(elements).
12
+ and_return(['=', 'something', 'value'])
13
+ }
14
+ it { expect(query.instance_variable_get(:@elements)).to eq ['=', 'something', 'value'] }
15
+ end
16
+
17
+ describe '.parse' do
18
+ context 'with a single argument not matching an assignment' do
19
+ let(:elements) { [ 'anything' ] }
20
+ let(:expected) { [] }
21
+ let(:query) { Hieracles::Puppetdb::Query.new elements }
22
+ it { expect(query.instance_variable_get(:@elements)).to eq expected }
23
+ end
24
+ context 'with a single argument matching an assignment' do
25
+ let(:elements) { [ 'something=value' ] }
26
+ let(:expected) { ['=', 'something', 'value'] }
27
+ let(:query) { Hieracles::Puppetdb::Query.new elements }
28
+ it { expect(query.instance_variable_get(:@elements)).to eq expected }
29
+ end
30
+ context 'with 2 arguments matching an assignment' do
31
+ let(:elements) { [ 'something=value', 'another=else' ] }
32
+ let(:expected) { [['=', 'something', 'value'], ['=', 'another', 'else']] }
33
+ let(:query) { Hieracles::Puppetdb::Query.new elements }
34
+ #it { expect(query.instance_variable_get(:@elements)).to eq expected }
35
+ end
36
+
37
+ end
38
+
39
+ end
@@ -0,0 +1,61 @@
1
+ require 'spec_helper'
2
+
3
+ describe Hieracles::Puppetdb::Request do
4
+
5
+ describe '.new' do
6
+ let(:request) { Hieracles::Puppetdb::Request.new({}) }
7
+ it { expect(request.instance_variable_get(:@client)).to be_a(Hieracles::Puppetdb::Client) }
8
+ end
9
+
10
+ describe '.node_info' do
11
+ let(:request) { Hieracles::Puppetdb::Request.new({}) }
12
+ let(:expected) {
13
+ {
14
+ 'some' => 'info'
15
+ }
16
+ }
17
+ before {
18
+ allow_any_instance_of(Hieracles::Puppetdb::Client).
19
+ to receive(:request).
20
+ with('nodes/some.host').
21
+ and_return({'some' => 'info'})
22
+ }
23
+ it { expect(request.node_info 'some.host').to eq expected }
24
+ end
25
+
26
+ describe '.node_facts' do
27
+ let(:request) { Hieracles::Puppetdb::Request.new({}) }
28
+ let(:response) { Hieracles::Puppetdb::Response.new([{'name' => 'some', 'value' => 'info'}], 1, []) }
29
+ let(:expected_response) { Hieracles::Puppetdb::Response.new({some: 'info'}, 1, []) }
30
+ before {
31
+ allow_any_instance_of(Hieracles::Puppetdb::Client).
32
+ to receive(:request).
33
+ with('nodes/some.host/facts').
34
+ and_return(response)
35
+ }
36
+ it { expect(request.node_facts('some.host').data).to eq expected_response.data }
37
+ end
38
+
39
+
40
+ describe '.node_resources' do
41
+ let(:request) { Hieracles::Puppetdb::Request.new({}) }
42
+ let(:response) { Hieracles::Puppetdb::Response.new([{'name' => 'some', 'value' => 'info', 'title' => 'title'}], 1, []) }
43
+ let(:expected) {
44
+ {
45
+ 'title' => {
46
+ 'name' => 'some',
47
+ 'value' => 'info',
48
+ 'title' => 'title'
49
+ }
50
+ }
51
+ }
52
+ before {
53
+ allow_any_instance_of(Hieracles::Puppetdb::Client).
54
+ to receive(:request).
55
+ with('nodes/some.host/resources').
56
+ and_return(response)
57
+ }
58
+ it { expect(request.node_resources('some.host').data).to eq expected }
59
+ end
60
+
61
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe Hieracles::Puppetdb::Response do
4
+
5
+ describe '.new' do
6
+ let(:data) { 'something' }
7
+ let(:total_records) { 2 }
8
+ let(:response) { Hieracles::Puppetdb::Response.new(data, total_records) }
9
+ it { expect(response.data).to eq data }
10
+ it { expect(response.total_records).to eq total_records }
11
+ end
12
+
13
+ end
data/spec/spec_helper.rb CHANGED
@@ -14,10 +14,10 @@ if !ENV['BUILD']
14
14
  end
15
15
  SimpleCov.start :app
16
16
  else
17
- #require 'coveralls'
18
- #Coveralls.wear!
19
- require "codeclimate-test-reporter"
20
- CodeClimate::TestReporter.start
17
+ require 'coveralls'
18
+ Coveralls.wear!
19
+ # require "codeclimate-test-reporter"
20
+ # CodeClimate::TestReporter.start
21
21
  end
22
22
  end
23
23
 
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hieracles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-24 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: deep_merge
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +38,40 @@ dependencies:
24
38
  - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: awesome_print
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mime-types
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.6.2
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '3'
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 2.6.2
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '3'
27
75
  - !ruby/object:Gem::Dependency
28
76
  name: bundler
29
77
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +115,7 @@ dependencies:
67
115
  - !ruby/object:Gem::Version
68
116
  version: '3.0'
69
117
  - !ruby/object:Gem::Dependency
70
- name: codeclimate-test-reporter
118
+ name: coveralls
71
119
  requirement: !ruby/object:Gem::Requirement
72
120
  requirements:
73
121
  - - ">="
@@ -108,11 +156,12 @@ dependencies:
108
156
  - - ">="
109
157
  - !ruby/object:Gem::Version
110
158
  version: '0'
111
- description: CLI tool for Hiera parameters visualisation and analysis.
159
+ description: CLI tool for Hiera parameters visualization and analysis.
112
160
  email:
113
161
  - mose@gandi.net
114
162
  executables:
115
163
  - hc
164
+ - ppdb
116
165
  extensions: []
117
166
  extra_rdoc_files: []
118
167
  files:
@@ -120,10 +169,9 @@ files:
120
169
  - Gemfile
121
170
  - LICENSE
122
171
  - README.md
123
- - Rakefile
124
172
  - bin/hc
173
+ - bin/ppdb
125
174
  - hc.1
126
- - hieracles.gemspec
127
175
  - lib/hieracles.rb
128
176
  - lib/hieracles/config.rb
129
177
  - lib/hieracles/format.rb
@@ -133,22 +181,39 @@ files:
133
181
  - lib/hieracles/formats/plain.rb
134
182
  - lib/hieracles/formats/rawyaml.rb
135
183
  - lib/hieracles/formats/yaml.rb
136
- - lib/hieracles/help.rb
137
184
  - lib/hieracles/hiera.rb
138
185
  - lib/hieracles/interpolate.rb
139
186
  - lib/hieracles/node.rb
187
+ - lib/hieracles/notification.rb
188
+ - lib/hieracles/options/hc.rb
189
+ - lib/hieracles/options/ppdb.rb
140
190
  - lib/hieracles/optparse.rb
191
+ - lib/hieracles/puppetdb.rb
192
+ - lib/hieracles/puppetdb/apierror.rb
193
+ - lib/hieracles/puppetdb/client.rb
194
+ - lib/hieracles/puppetdb/filter.rb
195
+ - lib/hieracles/puppetdb/fixsslconnectionadapter.rb
196
+ - lib/hieracles/puppetdb/query.rb
197
+ - lib/hieracles/puppetdb/request.rb
198
+ - lib/hieracles/puppetdb/response.rb
141
199
  - lib/hieracles/registry.rb
142
200
  - lib/hieracles/utils.rb
201
+ - ppdb.1
143
202
  - spec/files/config.yml
203
+ - spec/files/config_withdb.yml
144
204
  - spec/files/enc/server.example.com.yaml
145
205
  - spec/files/enc/server2.example.com.yaml
146
206
  - spec/files/enc/server3.example.com.yaml
147
207
  - spec/files/enc/server4.example.com.yaml
208
+ - spec/files/facts.json
209
+ - spec/files/facts.yaml
148
210
  - spec/files/farm_modules/dev.pp
149
211
  - spec/files/farm_modules/dev2.pp
150
212
  - spec/files/farm_modules/dev4.pp
151
213
  - spec/files/hiera.yaml
214
+ - spec/files/hiera_columns.yaml
215
+ - spec/files/hiera_deep.yaml
216
+ - spec/files/hiera_deeper.yaml
152
217
  - spec/files/hiera_no_yamlbackend.yaml
153
218
  - spec/files/hiera_yamlbackend_notfound.yaml
154
219
  - spec/files/modules/fake_module/manifests/init.pp
@@ -159,6 +224,13 @@ files:
159
224
  - spec/files/params/common/common.yml
160
225
  - spec/files/params/farm/dev.yaml
161
226
  - spec/files/params/nodes/server.example.com.yaml
227
+ - spec/files/ssl/bad-ca.crt
228
+ - spec/files/ssl/bad-cert.crt
229
+ - spec/files/ssl/bad-key.pem
230
+ - spec/files/ssl/ca.crt
231
+ - spec/files/ssl/cert.crt
232
+ - spec/files/ssl/key-pass.pem
233
+ - spec/files/ssl/key.pem
162
234
  - spec/lib/config_spec.rb
163
235
  - spec/lib/format_spec.rb
164
236
  - spec/lib/formats/console_spec.rb
@@ -167,10 +239,19 @@ files:
167
239
  - spec/lib/formats/plain_spec.rb
168
240
  - spec/lib/formats/rawyaml_spec.rb
169
241
  - spec/lib/formats/yaml_spec.rb
170
- - spec/lib/help_spec.rb
171
242
  - spec/lib/hiera_spec.rb
243
+ - spec/lib/hieracles_spec.rb
244
+ - spec/lib/interpolate_spec.rb
172
245
  - spec/lib/node_spec.rb
246
+ - spec/lib/notification_spec.rb
247
+ - spec/lib/options/hc_spec.rb
173
248
  - spec/lib/optparse_spec.rb
249
+ - spec/lib/puppetdb/apierror_spec.rb
250
+ - spec/lib/puppetdb/client_spec.rb
251
+ - spec/lib/puppetdb/fixsslconnectionadapter_spec.rb
252
+ - spec/lib/puppetdb/query_spec.rb
253
+ - spec/lib/puppetdb/request_spec.rb
254
+ - spec/lib/puppetdb/response_spec.rb
174
255
  - spec/lib/registry_spec.rb
175
256
  - spec/lib/utils_spec.rb
176
257
  - spec/spec_helper.rb
@@ -198,39 +279,61 @@ rubyforge_project:
198
279
  rubygems_version: 2.4.8
199
280
  signing_key:
200
281
  specification_version: 4
201
- summary: CLI tool for Hiera parameters visualisation.
282
+ summary: CLI tool for Hiera parameters visualization.
202
283
  test_files:
203
- - spec/files/config.yml
204
- - spec/files/enc/server.example.com.yaml
284
+ - spec/spec_helper.rb
285
+ - spec/files/hiera_no_yamlbackend.yaml
286
+ - spec/files/facts.json
287
+ - spec/files/hiera_columns.yaml
288
+ - spec/files/ssl/ca.crt
289
+ - spec/files/ssl/bad-ca.crt
290
+ - spec/files/ssl/key-pass.pem
291
+ - spec/files/ssl/cert.crt
292
+ - spec/files/ssl/bad-cert.crt
293
+ - spec/files/ssl/bad-key.pem
294
+ - spec/files/ssl/key.pem
295
+ - spec/files/config_withdb.yml
296
+ - spec/files/params/common/common.yml
297
+ - spec/files/params/farm/dev.yaml
298
+ - spec/files/params/nodes/server.example.com.yaml
205
299
  - spec/files/enc/server2.example.com.yaml
206
- - spec/files/enc/server3.example.com.yaml
300
+ - spec/files/enc/server.example.com.yaml
207
301
  - spec/files/enc/server4.example.com.yaml
302
+ - spec/files/enc/server3.example.com.yaml
303
+ - spec/files/farm_modules/dev4.pp
208
304
  - spec/files/farm_modules/dev.pp
209
305
  - spec/files/farm_modules/dev2.pp
210
- - spec/files/farm_modules/dev4.pp
211
- - spec/files/hiera.yaml
212
- - spec/files/hiera_no_yamlbackend.yaml
213
306
  - spec/files/hiera_yamlbackend_notfound.yaml
307
+ - spec/files/hiera.yaml
308
+ - spec/files/modules/fake_module3/manifests/init.pp
214
309
  - spec/files/modules/fake_module/manifests/init.pp
215
310
  - spec/files/modules/fake_module2/manifests/init.pp
216
- - spec/files/modules/fake_module3/manifests/init.pp
217
- - spec/files/modules/faux_module1/manifests/init.pp
218
311
  - spec/files/modules/faux_module2/manifests/init.pp
219
- - spec/files/params/common/common.yml
220
- - spec/files/params/farm/dev.yaml
221
- - spec/files/params/nodes/server.example.com.yaml
222
- - spec/lib/config_spec.rb
312
+ - spec/files/modules/faux_module1/manifests/init.pp
313
+ - spec/files/facts.yaml
314
+ - spec/files/config.yml
315
+ - spec/files/hiera_deep.yaml
316
+ - spec/files/hiera_deeper.yaml
317
+ - spec/lib/node_spec.rb
318
+ - spec/lib/puppetdb/client_spec.rb
319
+ - spec/lib/puppetdb/fixsslconnectionadapter_spec.rb
320
+ - spec/lib/puppetdb/response_spec.rb
321
+ - spec/lib/puppetdb/request_spec.rb
322
+ - spec/lib/puppetdb/apierror_spec.rb
323
+ - spec/lib/puppetdb/query_spec.rb
324
+ - spec/lib/hieracles_spec.rb
325
+ - spec/lib/notification_spec.rb
326
+ - spec/lib/utils_spec.rb
223
327
  - spec/lib/format_spec.rb
224
- - spec/lib/formats/console_spec.rb
225
- - spec/lib/formats/csv_spec.rb
226
- - spec/lib/formats/json_spec.rb
227
- - spec/lib/formats/plain_spec.rb
328
+ - spec/lib/config_spec.rb
329
+ - spec/lib/interpolate_spec.rb
228
330
  - spec/lib/formats/rawyaml_spec.rb
331
+ - spec/lib/formats/plain_spec.rb
332
+ - spec/lib/formats/json_spec.rb
229
333
  - spec/lib/formats/yaml_spec.rb
230
- - spec/lib/help_spec.rb
231
- - spec/lib/hiera_spec.rb
232
- - spec/lib/node_spec.rb
334
+ - spec/lib/formats/csv_spec.rb
335
+ - spec/lib/formats/console_spec.rb
336
+ - spec/lib/options/hc_spec.rb
233
337
  - spec/lib/optparse_spec.rb
234
338
  - spec/lib/registry_spec.rb
235
- - spec/lib/utils_spec.rb
236
- - spec/spec_helper.rb
339
+ - spec/lib/hiera_spec.rb
data/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- require 'rake/testtask'
4
- require 'rspec/core/rake_task'
5
-
6
- desc 'launch rspec tests'
7
- task :spec do
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.rspec_opts = ['-c', '-f progress', '-r ./spec/spec_helper.rb']
10
- t.pattern = 'spec/lib/**/*_spec.rb'
11
- end
12
- end
13
-
14
- task default: :spec
data/hieracles.gemspec DELETED
@@ -1,90 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "hieracles"
7
- spec.version = File.read(File.expand_path('../CHANGELOG.md', __FILE__))[/([0-9]+\.[0-9]+\.[0-9]+)/]
8
- spec.authors = ["mose"]
9
- spec.email = ["mose@gandi.net"]
10
- spec.summary = %q{CLI tool for Hiera parameters visualisation.}
11
- spec.description = %q{CLI tool for Hiera parameters visualisation and analysis.}
12
- spec.homepage = "https://github.com/Gandi/hieracles"
13
- spec.metadata = { "changelog" => "https://github.com/Gandi/hieracles/blob/master/CHANGELOG.md" }
14
- spec.license = "MIT"
15
-
16
- spec.files = %w(
17
- CHANGELOG.md
18
- Gemfile
19
- LICENSE
20
- README.md
21
- Rakefile
22
- hc.1
23
- bin/hc
24
- hieracles.gemspec
25
- lib/hieracles.rb
26
- lib/hieracles/config.rb
27
- lib/hieracles/format.rb
28
- lib/hieracles/formats/console.rb
29
- lib/hieracles/formats/csv.rb
30
- lib/hieracles/formats/json.rb
31
- lib/hieracles/formats/plain.rb
32
- lib/hieracles/formats/rawyaml.rb
33
- lib/hieracles/formats/yaml.rb
34
- lib/hieracles/help.rb
35
- lib/hieracles/hiera.rb
36
- lib/hieracles/interpolate.rb
37
- lib/hieracles/node.rb
38
- lib/hieracles/optparse.rb
39
- lib/hieracles/registry.rb
40
- lib/hieracles/utils.rb
41
- spec/files/config.yml
42
- spec/files/enc/server.example.com.yaml
43
- spec/files/enc/server2.example.com.yaml
44
- spec/files/enc/server3.example.com.yaml
45
- spec/files/enc/server4.example.com.yaml
46
- spec/files/farm_modules/dev.pp
47
- spec/files/farm_modules/dev2.pp
48
- spec/files/farm_modules/dev4.pp
49
- spec/files/hiera.yaml
50
- spec/files/hiera_no_yamlbackend.yaml
51
- spec/files/hiera_yamlbackend_notfound.yaml
52
- spec/files/modules/fake_module/manifests/init.pp
53
- spec/files/modules/fake_module2/manifests/init.pp
54
- spec/files/modules/fake_module3/manifests/init.pp
55
- spec/files/modules/faux_module1/manifests/init.pp
56
- spec/files/modules/faux_module2/manifests/init.pp
57
- spec/files/params/common/common.yml
58
- spec/files/params/farm/dev.yaml
59
- spec/files/params/nodes/server.example.com.yaml
60
- spec/lib/config_spec.rb
61
- spec/lib/format_spec.rb
62
- spec/lib/formats/console_spec.rb
63
- spec/lib/formats/csv_spec.rb
64
- spec/lib/formats/json_spec.rb
65
- spec/lib/formats/plain_spec.rb
66
- spec/lib/formats/rawyaml_spec.rb
67
- spec/lib/formats/yaml_spec.rb
68
- spec/lib/help_spec.rb
69
- spec/lib/hiera_spec.rb
70
- spec/lib/node_spec.rb
71
- spec/lib/optparse_spec.rb
72
- spec/lib/registry_spec.rb
73
- spec/lib/utils_spec.rb
74
- spec/spec_helper.rb
75
- )
76
- spec.executables = ['hc']
77
- spec.test_files = spec.files.grep(%r{^spec/})
78
- spec.require_paths = ["lib"]
79
-
80
- spec.add_dependency 'deep_merge'
81
-
82
- spec.add_development_dependency "bundler", "~> 1.7"
83
- spec.add_development_dependency "rake", "~> 10.0"
84
- spec.add_development_dependency 'rspec', "~> 3.0"
85
- # spec.add_development_dependency 'coveralls'
86
- spec.add_development_dependency 'codeclimate-test-reporter'
87
- spec.add_development_dependency 'simplecov'
88
- spec.add_development_dependency 'rubocop'
89
-
90
- end