<commit_before>namespace :load do
  task :defaults do
    set :revision_roles, -> { :app }
    set :revision_file, -> { "config/settings.local.yml" }
  end
end

namespace :revision do
  desc 'Write yaml current revision'
  task :write_yml do
    on roles(fetch(:revision_roles)) do
      within release_path do
        execute :echo, "'revision: #{fetch :current_revision}' > #{fetch(:revision_roles)}"
      end
    end
  end

  before 'deploy:updated', :write
end<commit_msg>yaml 形式で書き込むことを記載しました。<commit_after>namespace :load do
  task :defaults do
    set :revision_roles, -> { :app }
    set :revision_file, -> { "config/settings.local.yml" }
  end
end

namespace :revision do
  desc 'Write yaml current revision'
  task :write_yml do
    on roles(fetch(:revision_roles)) do
      within release_path do
        execute :echo, "'revision: #{fetch :current_revision}' > #{fetch(:revision_roles)}"
      end
    end
  end

  before 'deploy:updated', :write_yml
end
{'fraction_non_alphanumeric': 0.11478800413650465, 'fraction_numerical': 0.0, 'mean_word_length': 3.5660377358490565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2225301', 'n_tokens_mistral': 340, 'n_tokens_neox': 329, 'n_words': 88}