<commit_before>node[:deploy].each do |application, deploy|
  if deploy[:application_type] != 'rails'
    Chef::Log.debug("Skipping opsworks_custom_env::restart_command for application #{application} as it is not a rails app")
    next
  end

  execute "restart Rails app #{application} for custom env" do
    cwd deploy[:current_path]
    command "#{deploy[:deploy_to]}/shared/scripts/unicorn restart"
    user deploy[:user]

    action :nothing
  end

end<commit_msg>use the restart command that the app specified, instead of hardcoding to unicorn<commit_after>node[:deploy].each do |application, deploy|
  if deploy[:application_type] != 'rails'
    Chef::Log.debug("Skipping opsworks_custom_env::restart_command for application #{application} as it is not a rails app")
    next
  end

  execute "restart Rails app #{application} for custom env" do
    cwd deploy[:current_path]
    command deploy[:restart_command]
    user deploy[:user]

    action :nothing
  end

end
{'fraction_non_alphanumeric': 0.09969167523124357, 'fraction_numerical': 0.0, 'mean_word_length': 4.695906432748538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '784622', 'n_tokens_mistral': 298, 'n_tokens_neox': 281, 'n_words': 92}