lib/slack/smart-bot/commands/general/update_team.rb in slack-smart-bot-1.12.9 vs lib/slack/smart-bot/commands/general/update_team.rb in slack-smart-bot-1.13.0
- old
+ new
@@ -30,9 +30,10 @@
wrong = false
if new_name != ""
team = @teams[team_name.to_sym].deep_copy
@teams[new_name.to_sym] = team
@teams.delete(team_name.to_sym)
+ File.delete(File.join(config.path, "teams", "t_#{team_name}.yaml"))
message = "The *#{team_name}* team has been renamed #{new_name}."
team_name = new_name
elsif new_info != ""
@teams[team_name.to_sym].info = new_info
elsif delete_opts != ""