Method: Miasma::Models::Orchestration::Stack#load_data
- Defined in:
- lib/miasma/models/orchestration/stack.rb
#load_data(args = {}) ⇒ Object
Overload the loader so we can extract resources, events, and outputs
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/miasma/models/orchestration/stack.rb', line 66 def load_data(args = {}) args = args.to_smash @resources = (args.delete(:resources) || []).each do |r| Resource.new(r) end @events = (args.delete(:events) || []).each do |e| Event.new(e) end super args end |