lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.7.1 vs lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.7.2
- old
+ new
@@ -1,7 +1,8 @@
require 'artifactory'
require 'tmpdir'
+require 'hashie'
module CiCd
module Builder
# noinspection RubySuperCallWithoutSuperclassInspection
module Manifest
@@ -75,12 +76,12 @@
require 'chef/mash'
require 'chef/mixin/deep_merge'
projects_hash = File.exists?(ENV['PROJECTS_FILE']) ? loadConfigFile(ENV['PROJECTS_FILE']) : {}
- old_projects = ::Chef::Mash.new(projects_hash)
- projects = ::Chef::Mash.new(projects)
- projects = ::Chef::Mash.new(::Chef::Mixin::DeepMerge.deep_merge(projects, old_projects))
+ old_projects = ::Hashie::Mash.new(projects_hash)
+ projects = ::Hashie::Mash.new(projects)
+ projects = ::Hashie::Mash.new(::Chef::Mixin::DeepMerge.deep_merge(projects, old_projects))
saveConfigFile(ENV['PROJECTS_FILE'], projects)
data = {
name: 'projects-file',
module: 'projects-file',
file: ENV['PROJECTS_FILE'],