Method: MCollective::Util::Playbook::Tasks#from_hash
- Defined in:
- lib/mcollective/util/playbook/tasks.rb
#from_hash(data) ⇒ Object
181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/mcollective/util/playbook/tasks.rb', line 181 def from_hash(data) case data when Array load_tasks(data, "tasks") when Hash data.each do |set, tasks| load_tasks(tasks, set) end end self end |