<commit_before>require 'trooper/action'

require 'trooper/actions/clone_repository_action'
require 'trooper/actions/install_gems_action'
require 'trooper/actions/migrate_database_action'
require 'trooper/actions/restart_server_action'
require 'trooper/actions/rollback_migrate_action'
require 'trooper/actions/setup_database_action'
require 'trooper/actions/update_repository_action'

module Trooper
  module Config
    module Action

      DEFAULT_ACTIONS = [Actions::CloneRepositoryAction, Actions::InstallGemsAction, 
                          Actions::MigrateDatabaseAction, Actions::RestartServerAction, 
                          Actions::RollbackMigrateAction, Actions::SetupDatabaseAction, 
                          Actions::UpdateRepositoryAction]
      
      def action(name, description = "No Description", &block)
        action = Trooper::Action.new name, description, &block
        Trooper::Arsenal.actions.add action
      end


      def load_default_actions!
        DEFAULT_ACTIONS.each do |klass|
          Trooper::Arsenal.actions.add klass.new
        end
      end

    end
  end
end<commit_msg>added a debug load message<commit_after>require 'trooper/action'

require 'trooper/actions/clone_repository_action'
require 'trooper/actions/install_gems_action'
require 'trooper/actions/migrate_database_action'
require 'trooper/actions/restart_server_action'
require 'trooper/actions/rollback_migrate_action'
require 'trooper/actions/setup_database_action'
require 'trooper/actions/update_repository_action'

module Trooper
  module Config
    module Action

      DEFAULT_ACTIONS = [Actions::CloneRepositoryAction, Actions::InstallGemsAction, 
                          Actions::MigrateDatabaseAction, Actions::RestartServerAction, 
                          Actions::RollbackMigrateAction, Actions::SetupDatabaseAction, 
                          Actions::UpdateRepositoryAction]
      
      def action(name, description = "No Description", &block)
        action = Trooper::Action.new name, description, &block
        Trooper::Arsenal.actions.add action
      end


      def load_default_actions!
        DEFAULT_ACTIONS.each do |klass|
          Trooper.logger.debug "loaded #{klass.to_s}"
          Trooper::Arsenal.actions.add klass.new
        end
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.07715648027741656, 'fraction_numerical': 0.0, 'mean_word_length': 3.297951582867784, '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': '2947138', 'n_tokens_mistral': 656, 'n_tokens_neox': 627, 'n_words': 118}