<commit_before>if (node.attribute?('ec2') && ! FileTest.directory?(node['zncrypt']['ec2_path']))

  service "ezencrypt" do
    action :stop
  end

  directory node['zncrypt']['ec2_path']

  %w{mount storage}.each do |dir|

    target_dir = ::File.join(node['zncrypt']['ec2_path'],::File.basename(node['zncrypt']["zncrypt_#{dir}"]))

    execute "migrate-zncrypt-#{dir}-directory" do
      command "mv #{node['zncrypt']["zncrypt_#{dir}"]} #{node['zncrypt']['ec2_path']}"
      not_if do FileTest.directory?(target_dir) end
    end

    mount node['zncrypt']["zncrypt_#{dir}"] do
      device target_dir
      fstype "none"<commit_msg>adding additional directory resources to ec2_mount recipe<commit_after>if (node.attribute?('ec2') && ! FileTest.directory?(node['zncrypt']['ec2_path']))

  service "ezencrypt" do
    action :stop
  end

  directory node['zncrypt']['ec2_path']

  %w{mount storage}.each do |dir|

    target_dir = ::File.join(node['zncrypt']['ec2_path'],::File.basename(node['zncrypt']["zncrypt_#{dir}"]))

    execute "migrate-zncrypt-#{dir}-directory" do
      command "mv #{node['zncrypt']["zncrypt_#{dir}"]} #{node['zncrypt']['ec2_path']}"
      not_if do FileTest.directory?(target_dir) end
    end

    directory node['zncrypt']["zncrypt_#{dir}"]

    mount node['zncrypt']["zncrypt_#{dir}"] do
      device target_dir
      fstype "none"
{'fraction_non_alphanumeric': 0.19352465047829287, 'fraction_numerical': 0.008094186902133923, 'mean_word_length': 5.071428571428571, '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': '2930932', 'n_tokens_mistral': 497, 'n_tokens_neox': 498, 'n_words': 79}