manifest-builder 0.5.15 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffd8bef49ca4e0886fd5532da54da27c4b6bfbd7
|
4
|
+
data.tar.gz: 50f0f52111d62b9850957f4e498f181edb3e80c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29f04b796c242f71f6feced462cf3d3a2f09228578b0ecfe0293967d984d09cc835687f7c96511fb5ec28843fc86f6861b3208bff13be9698009f3c008fe660
|
7
|
+
data.tar.gz: 5a9d3cfc3e4eeffd30f9204850ff60f0aefdab23b9381fb426a60e7e9e0d5a3c69cd53a0239bd50ff1bf0871358ae96abf2f5b2b8d06584321841fbf721051b7
|
data/Gemfile.lock
CHANGED
@@ -80,11 +80,13 @@ module CiCd
|
|
80
80
|
}
|
81
81
|
end
|
82
82
|
|
83
|
+
require 'chef/mash'
|
83
84
|
require 'chef/mixin/deep_merge'
|
84
|
-
old_projects = File.exists?(ENV['PROJECTS_FILE']) ? JSON.load(IO.read(ENV['PROJECTS_FILE'])) : {}
|
85
|
-
projects = Chef::
|
85
|
+
old_projects = Chef::Mash.new(File.exists?(ENV['PROJECTS_FILE']) ? JSON.load(IO.read(ENV['PROJECTS_FILE'])) : {})
|
86
|
+
projects = Chef::Mash.new(projects)
|
87
|
+
projects = Chef::Mash.new(Chef::Mixin::DeepMerge.deep_merge(projects, old_projects))
|
86
88
|
@logger.info "Save PROJECTS_FILE: #{ENV['PROJECTS_FILE']}"
|
87
|
-
IO.write(ENV['PROJECTS_FILE'], JSON.pretty_generate(projects, {indent: "\t", space: ' '}))
|
89
|
+
IO.write(ENV['PROJECTS_FILE'], JSON.pretty_generate(projects.to_hash, {indent: "\t", space: ' '}))
|
88
90
|
data = {
|
89
91
|
name: 'projects-file',
|
90
92
|
module: 'projects-file',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifest-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christo De Lange
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cicd-builder
|