hieraviz 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/app/apiv1.rb +89 -20
- data/app/common.rb +73 -14
- data/app/public/css/main.css +97 -6
- data/app/public/js/farms.js +59 -19
- data/app/public/js/nodes.js +160 -3
- data/app/views/farms.erb +2 -2
- data/app/views/user.erb +6 -0
- data/app/web.rb +24 -23
- data/lib/hieraviz/auth_gitlab.rb +1 -3
- data/lib/hieraviz/config.rb +1 -1
- data/lib/hieraviz/facts.rb +27 -0
- data/lib/hieraviz/puppetdb.rb +13 -0
- data/lib/hieraviz/version.rb +1 -1
- data/lib/hieraviz.rb +2 -0
- data/spec/app/apiv1_spec.rb +10 -3
- data/spec/app/web_spec.rb +4 -2
- data/spec/files/config.yml +1 -0
- data/spec/files/config_dummy.yml +27 -0
- data/spec/files/config_gitlab.yml +1 -0
- data/spec/files/config_multi.yml +27 -0
- data/spec/files/puppet2/enc/node1.example.com.yaml +7 -0
- data/spec/files/puppet2/farm_modules/farm1/manifests/init.pp +3 -0
- data/spec/files/puppet2/hiera.yml +10 -0
- data/spec/files/puppet2/modules/module1/init.pp +2 -0
- data/spec/files/puppet2/params/common/common.yaml +4 -0
- data/spec/files/puppet2/params/nodes/node1.example.com.yaml +2 -0
- data/spec/lib/config_spec.rb +52 -13
- data/spec/lib/facts_spec.rb +41 -0
- data/spec/sinatra_helper.rb +7 -1
- data/spec/spec_helper.rb +0 -2
- metadata +24 -4
data/spec/sinatra_helper.rb
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
ENV['HIERAVIZ_CONFIG_FILE'] = File.expand_path '../files/config.yml', __FILE__
|
2
2
|
|
3
|
+
require 'spec_helper'
|
4
|
+
|
3
5
|
require File.expand_path '../../app/main.rb', __FILE__
|
4
6
|
|
7
|
+
require 'sinatra/base'
|
8
|
+
|
5
9
|
module RSpecMixin
|
6
10
|
include Rack::Test::Methods
|
7
|
-
def app()
|
11
|
+
def app()
|
12
|
+
described_class
|
13
|
+
end
|
8
14
|
end
|
9
15
|
|
10
16
|
RSpec.configure do |config|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hieraviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mose
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.3.
|
103
|
+
version: 0.3.5
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.3.
|
110
|
+
version: 0.3.5
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: bundler
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,12 +252,16 @@ files:
|
|
252
252
|
- lib/hieraviz.rb
|
253
253
|
- lib/hieraviz/auth_gitlab.rb
|
254
254
|
- lib/hieraviz/config.rb
|
255
|
+
- lib/hieraviz/facts.rb
|
256
|
+
- lib/hieraviz/puppetdb.rb
|
255
257
|
- lib/hieraviz/store.rb
|
256
258
|
- lib/hieraviz/version.rb
|
257
259
|
- spec/app/apiv1_spec.rb
|
258
260
|
- spec/app/web_spec.rb
|
259
261
|
- spec/files/config.yml
|
262
|
+
- spec/files/config_dummy.yml
|
260
263
|
- spec/files/config_gitlab.yml
|
264
|
+
- spec/files/config_multi.yml
|
261
265
|
- spec/files/hiera.yml
|
262
266
|
- spec/files/puppet/enc/node1.example.com.yaml
|
263
267
|
- spec/files/puppet/farm_modules/farm1/manifests/init.pp
|
@@ -265,8 +269,15 @@ files:
|
|
265
269
|
- spec/files/puppet/modules/module1/init.pp
|
266
270
|
- spec/files/puppet/params/common/common.yaml
|
267
271
|
- spec/files/puppet/params/nodes/node1.example.com.yaml
|
272
|
+
- spec/files/puppet2/enc/node1.example.com.yaml
|
273
|
+
- spec/files/puppet2/farm_modules/farm1/manifests/init.pp
|
274
|
+
- spec/files/puppet2/hiera.yml
|
275
|
+
- spec/files/puppet2/modules/module1/init.pp
|
276
|
+
- spec/files/puppet2/params/common/common.yaml
|
277
|
+
- spec/files/puppet2/params/nodes/node1.example.com.yaml
|
268
278
|
- spec/lib/auth_gitlab_spec.rb
|
269
279
|
- spec/lib/config_spec.rb
|
280
|
+
- spec/lib/facts_spec.rb
|
270
281
|
- spec/lib/store_spec.rb
|
271
282
|
- spec/oauth2_helper.rb
|
272
283
|
- spec/sinatra_helper.rb
|
@@ -302,7 +313,9 @@ test_files:
|
|
302
313
|
- spec/app/apiv1_spec.rb
|
303
314
|
- spec/app/web_spec.rb
|
304
315
|
- spec/files/config_gitlab.yml
|
316
|
+
- spec/files/config_multi.yml
|
305
317
|
- spec/files/hiera.yml
|
318
|
+
- spec/files/config_dummy.yml
|
306
319
|
- spec/files/config.yml
|
307
320
|
- spec/files/puppet/params/common/common.yaml
|
308
321
|
- spec/files/puppet/params/nodes/node1.example.com.yaml
|
@@ -310,7 +323,14 @@ test_files:
|
|
310
323
|
- spec/files/puppet/farm_modules/farm1/manifests/init.pp
|
311
324
|
- spec/files/puppet/modules/module1/init.pp
|
312
325
|
- spec/files/puppet/hiera.yml
|
326
|
+
- spec/files/puppet2/params/common/common.yaml
|
327
|
+
- spec/files/puppet2/params/nodes/node1.example.com.yaml
|
328
|
+
- spec/files/puppet2/enc/node1.example.com.yaml
|
329
|
+
- spec/files/puppet2/farm_modules/farm1/manifests/init.pp
|
330
|
+
- spec/files/puppet2/modules/module1/init.pp
|
331
|
+
- spec/files/puppet2/hiera.yml
|
313
332
|
- spec/sinatra_helper.rb
|
314
333
|
- spec/lib/auth_gitlab_spec.rb
|
315
334
|
- spec/lib/config_spec.rb
|
335
|
+
- spec/lib/facts_spec.rb
|
316
336
|
- spec/lib/store_spec.rb
|