Fix errors on ruby 2.0
Change-Id: I8789b75e9e05b9d55be2e5a9ef1ea8a89399485e
This commit is contained in:
parent
43a7f7b161
commit
01b841d1be
|
@ -143,7 +143,8 @@ module Noop
|
|||
@assign_spec_to_hiera = {}
|
||||
assign_spec_to_roles.each do |file_name_spec, spec_roles|
|
||||
hiera_files = assign_hiera_to_roles.select do |file_name_hiera, hiera_roles|
|
||||
hiera_roles.intersect? spec_roles
|
||||
roles_intersection = hiera_roles & spec_roles
|
||||
roles_intersection.any?
|
||||
end.keys
|
||||
@assign_spec_to_hiera[file_name_spec] = hiera_files if hiera_files.any?
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ module Noop
|
|||
def dir_path_gem_home
|
||||
return Pathname.new ENV['GEM_HOME'] if ENV['GEM_HOME']
|
||||
dir_name_bundle = Pathname.new '.bundled_gems'
|
||||
Noop::Utils.dir_path_workspace + dir_name_bundle
|
||||
Noop::Config.dir_path_workspace + dir_name_bundle
|
||||
end
|
||||
|
||||
def bundle_installed?
|
||||
|
|
Loading…
Reference in New Issue