<commit_before>include_recipe "deploy"

node[:deploy].each do |application, deploy|
  node.override[:deploy][application][:deploy_to] = "/srv/www/#{application}/#{node[:"opsworks-migrations"][:dir]}"
  deploy = node[:deploy][application]
  opsworks_deploy_dir do
    user deploy[:user]
    group deploy[:group]
    path deploy[:deploy_to]
  end
  Chef::Log.info("DEPLOY ATTRIBUTES: #{deploy.inspect}")
  opsworks_deploy do
    deploy_data deploy
    app application
  end

  ruby_block "Running Bundle Install" do
    block do
      Chef::Log.info(OpsWorks::ShellOut.shellout("cd #{deploy[:deploy_to]}/current &&  bundle install --path #{deploy[:deploy_to]}/shared/bundle --without=test development --deployment"))<commit_msg>Add cache directory to shared path<commit_after>include_recipe "deploy"

node[:deploy].each do |application, deploy|
  node.override[:deploy][application][:deploy_to] = "/srv/www/#{application}/#{node[:"opsworks-migrations"][:dir]}"
  deploy = node[:deploy][application]
  opsworks_deploy_dir do
    user deploy[:user]
    group deploy[:group]
    path deploy[:deploy_to]
  end

  Chef::Log.info("Ensuring shared/cache directory for #{application} app...")
  directory "#{deploy[:deploy_to]}/shared/cache" do
    group 'nginx'
    owner 'deploy'
    mode 0775
    action :create
    recursive true
  end

  Chef::Log.info("DEPLOY ATTRIBUTES: #{deploy.inspect}")
  opsworks_deploy do
    deploy_data deploy
    app application
  end

  ruby_block "Running Bundle Install" do
    block do
      Chef::Log.info(OpsWorks::ShellOut.shellout("cd #{deploy[:deploy_to]}/current &&  bundle install --path #{deploy[:deploy_to]}/shared/bundle --without=test development --deployment"))
{'fraction_non_alphanumeric': 0.14411764705882352, 'fraction_numerical': 0.002352941176470588, 'mean_word_length': 4.805460750853243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '188253', 'n_tokens_mistral': 569, 'n_tokens_neox': 538, 'n_words': 114}