<commit_before>#
# Cookbook Name:: gitlab
# Recipe:: clone
#

gitlab = node['gitlab']

# 6. GitLab
## Clone the Source
git gitlab['path'] do
  repository gitlab['repository']
  revision gitlab['revision']
  user gitlab['user']
  group gitlab['group']
  action :sync
  notifies :stop, "service[gitlab]", :immediately if File.exists?("/etc/init.d/gitlab")
  notifies :delete, "file[gems]", :immediately
  notifies :delete, "file[migrate]", :immediately
end

file "gems" do
  path File.join(gitlab['home'], ".gitlab_gems_#{gitlab['env']}")
  action :nothing
end

file "migrate" do
  path File.join(gitlab['home'], ".gitlab_migrate_#{gitlab['env']}")
  action :nothing
end<commit_msg>Also start gitlab but delayed.<commit_after>#
# Cookbook Name:: gitlab
# Recipe:: clone
#

gitlab = node['gitlab']

# 6. GitLab
## Clone the Source
git gitlab['path'] do
  repository gitlab['repository']
  revision gitlab['revision']
  user gitlab['user']
  group gitlab['group']
  action :sync
  notifies :stop, "service[gitlab]", :immediately if File.exists?("/etc/init.d/gitlab")
  notifies :delete, "file[gems]", :immediately
  notifies :delete, "file[migrate]", :immediately
  notifies :start, "service[gitlab]"
end

file "gems" do
  path File.join(gitlab['home'], ".gitlab_gems_#{gitlab['env']}")
  action :nothing
end

file "migrate" do
  path File.join(gitlab['home'], ".gitlab_migrate_#{gitlab['env']}")
  action :nothing
end
{'fraction_non_alphanumeric': 0.17043847241867044, 'fraction_numerical': 0.0014144271570014145, 'mean_word_length': 5.5813953488372094, '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': '3693294', 'n_tokens_mistral': 517, 'n_tokens_neox': 510, 'n_words': 124}