Method: RunlistMap.create
- Defined in:
- lib/mofa/runlist_map.rb
.create(cookbook, hostlist, token, option_runlist = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/mofa/runlist_map.rb', line 9 def self.create(cookbook, hostlist, token, option_runlist = nil) rl = RunlistMap.new rl.cookbook = cookbook rl.hostlist = hostlist rl.token = token rl.option_runlist = option_runlist rl.default_runlist_recipes = (!option_runlist.nil?) ? option_runlist : nil rl end |