<commit_before>set :application, "crux"
set :use_sudo,    false

set :scm, :git
set :repository,  "git://github.com/pol/crux.git"

set :branch, "master"
set :deploy_via, :remote_cache
set :copy_exclude, [".git"]

# set :user, "yogo"
# 
# role :web, "yogo.cns.montana.edu"                          # Your HTTP server, Apache/etc
# role :app, "yogo.cns.montana.edu"                          # This may be the same as your `Web` server

set :ran_user_settings, false

task :user_settings do
  if !ran_user_settings
    set :user, "crux"
    set :deploy_to, "/home/crux/"
    server "crux.msu.montana.edu", :app, :web, :db, :primary => true
    server_prompt = "What server are you deploying to?"
    set :temp_server, Proc.new { Capistrano::CLI.ui.ask(server_prompt)}
    role :web, "#{temp_server}"
    role :app, "#{temp_server}"
    user_prompt = "What user are you deploying to the server under? (defaults to 'yogo')"
    set :temp_user, Proc.new { Capistrano::CLI.ui.ask(user_prompt)}
    if temp_user.empty?
      set :user, "yogo"
      set :deploy_to, "/home/yogo/rails/yogo/"
    else
      set :user, "#{temp_user}"
      set :deploy_to, "/home/#{temp_user}/rails/yogo/"
    end
    set :ran_user_settings, true
  end
end

[ "bundle:install", "deploy", "deploy:check", "deploy:cleanup", "deploy:cold", "deploy:migrate",
  "deploy:migrations", "deploy:pending", "deploy:pending:diff", "deploy:rollback", "deploy:rollback:code",
  "deploy:setup", "deploy:symlink", "deploy:update", "deploy:update_code", "deploy:upload", "deploy:web:disable",
  "deploy:web:enable", "invoke", "persvr:setup", "persvr:start", "persvr:stop", "persvr:drop",<commit_msg>comment out user/server prompt for deployment<commit_after>set :application, "crux"
set :use_sudo,    false

set :scm, :git
set :repository,  "git://github.com/pol/crux.git"

set :branch, "master"
set :deploy_via, :remote_cache
set :copy_exclude, [".git"]

# set :user, "yogo"
# 
# role :web, "yogo.cns.montana.edu"                          # Your HTTP server, Apache/etc
# role :app, "yogo.cns.montana.edu"                          # This may be the same as your `Web` server

set :ran_user_settings, false

task :user_settings do
  if !ran_user_settings
    set :user, "crux"
    set :deploy_to, "/home/crux/"
    server "crux.msu.montana.edu", :app, :web, :db, :primary => true
    # server_prompt = "What server are you deploying to?"
    # set :temp_server, Proc.new { Capistrano::CLI.ui.ask(server_prompt)}
    # role :web, "#{temp_server}"
    # role :app, "#{temp_server}"
    # user_prompt = "What user are you deploying to the server under? (defaults to 'yogo')"
    # set :temp_user, Proc.new { Capistrano::CLI.ui.ask(user_prompt)}
    # if temp_user.empty?
    #   set :user, "yogo"
    #   set :deploy_to, "/home/yogo/rails/yogo/"
    # else
    #   set :user, "#{temp_user}"
    #   set :deploy_to, "/home/#{temp_user}/rails/yogo/"
    # end
    set :ran_user_settings, true
  end
end

[ "bundle:install", "deploy", "deploy:check", "deploy:cleanup", "deploy:cold", "deploy:migrate",
  "deploy:migrations", "deploy:pending", "deploy:pending:diff", "deploy:rollback", "deploy:rollback:code",
  "deploy:setup", "deploy:symlink", "deploy:update", "deploy:update_code", "deploy:upload", "deploy:web:disable",
  "deploy:web:enable", "invoke", "persvr:setup", "persvr:start", "persvr:stop", "persvr:drop",
{'fraction_non_alphanumeric': 0.16696375519904932, 'fraction_numerical': 0.0, 'mean_word_length': 3.851585014409222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3256303', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1204, 'n_words': 288}