<commit_before>$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"
set :rvm_type, :user
set :rvm_ruby_string, 'ruby-1.9.3-p125@kochiku'

require 'bundler/capistrano' # adds bundle:install step to deploy pipeline

default_run_options[:env] = {'PATH' => '/usr/local/bin:$PATH'}

set :application, "Kochiku"
set :repository,  "<EMAIL>:square/kochiku.git"
set :branch, "master"
set :scm, :git
set :scm_command, 'git'

set :user, "square"
set :deploy_to, "$HOME/kochiku"
set :deploy_via, :remote_cache
set :keep_releases, 5
set :use_sudo, false

server "macbuild-master.sfo.squareup.com", :app, :web, :db, :worker, :primary => true

set :rails_env, "production"

after "deploy:setup", "kochiku:setup"
after "deploy:symlink", "kochiku:symlinks"

namespace :deploy do
  task :start, :roles => :app do
    run "touch #{current_release}/tmp/restart.txt"<commit_msg>hook correct deploy hook so that our links are made after current link is updated instead of before current is updated<commit_after>$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"
set :rvm_type, :user
set :rvm_ruby_string, 'ruby-1.9.3-p125@kochiku'

require 'bundler/capistrano' # adds bundle:install step to deploy pipeline

default_run_options[:env] = {'PATH' => '/usr/local/bin:$PATH'}

set :application, "Kochiku"
set :repository,  "<EMAIL>:<EMAIL>/kochiku.git"
set :branch, "master"
set :scm, :git
set :scm_command, 'git'

set :user, "square"
set :deploy_to, "$HOME/kochiku"
set :deploy_via, :remote_cache
set :keep_releases, 5
set :use_sudo, false

server "macbuild-master.sfo.squareup.com", :app, :web, :db, :worker, :primary => true

set :rails_env, "production"

after "deploy:setup", "kochiku:setup"
after "deploy:create_symlink", "kochiku:symlinks"

namespace :deploy do
  task :start, :roles => :app do
    run "touch #{current_release}/tmp/restart.txt"
{'fraction_non_alphanumeric': 0.15540883697308278, 'fraction_numerical': 0.007110208227526663, 'mean_word_length': 5.96113074204947, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, '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': '6369082', 'n_tokens_mistral': 753, 'n_tokens_neox': 722, 'n_words': 193}