<commit_before>node[:deploy].each do |application, deploy|

  execute "restart Rails app #{application} for custom env" do
    cwd deploy[:current_path]
    if node[:opsworks][:rails_stack][:name].eql? "apache_passenger"
      command "touch #{deploy[:deploy_to]}/current/tmp/restart.txt"
    elsif node[:opsworks][:rails_stack][:recipe].eql? "nginx_unicorn"
      command "#{deploy[:deploy_to]}/shared/scripts/unicorn clean-restart"
    end
    user deploy[:user]

    action :nothing
  end

end<commit_msg>fix nginx_unicorn rails_stack detection on restart<commit_after>node[:deploy].each do |application, deploy|

  execute "restart Rails app #{application} for custom env" do
    cwd deploy[:current_path]
    if node[:opsworks][:rails_stack][:name].eql? "apache_passenger"
      command "touch #{deploy[:deploy_to]}/current/tmp/restart.txt"
    elsif node[:opsworks][:rails_stack][:name].eql? "nginx_unicorn"
      command "#{deploy[:deploy_to]}/shared/scripts/unicorn clean-restart"
    end
    user deploy[:user]

    action :nothing
  end

end
{'fraction_non_alphanumeric': 0.13701236917221693, 'fraction_numerical': 0.0, 'mean_word_length': 4.844444444444444, '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': '6116033', 'n_tokens_mistral': 363, 'n_tokens_neox': 342, 'n_words': 72}