Fix errors on ruby 2.0

Change-Id: I8789b75e9e05b9d55be2e5a9ef1ea8a89399485e
This commit is contained in:
Dmitry Ilyin 2016-02-16 00:09:01 +03:00
parent 43a7f7b161
commit 01b841d1be
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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?