Conditions | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
19 | def plan(group, current_state, desired_state) |
||
20 | actions = (current_state.keys | desired_state.keys).map do |type| |
||
21 | process(group, current_state[type], desired_state[type]) |
||
22 | end |
||
23 | actions.push(ns::Purge.new(group)) if desired_state.empty? |
||
24 | actions |
||
25 | end |
||
26 | |||
46 |