Method: DeployInfo::State#write_state

Defined in:
lib/deploy-info/state.rb

#write_stateObject



84
85
86
87
88
89
90
# File 'lib/deploy-info/state.rb', line 84

def write_state
  # => Sort & Unique State
  state.sort_by! { |h| h[:name].downcase }.uniq!

  # => Write Out the Updated State
  Util.write_json_config(Config.state_file, state)
end