Method: RunlistMap#set_default_runlist_for_every_host

Defined in:
lib/mofa/runlist_map.rb

#set_default_runlist_for_every_hostObject



57
58
59
60
61
62
63
64
# File 'lib/mofa/runlist_map.rb', line 57

def set_default_runlist_for_every_host
  hostlist.list.each do |hostname|
    @default_runlist_recipes.each do |rl_entry|
      next unless rl_entry.split(/::/)[0] == cookbook.name
      @mp.store(hostname,  rl_entry) if cookbook.recipes.kind_of?(Array) and cookbook.recipes.include?(rl_entry.split(/::/)[1])
    end
  end
end