#!/usr/bin/env ruby require 'captain_hoog' # read config hoog_config = CaptainHoog::Hoogfile.config('<%= config[:root_dir] %>') # Adjust settings CaptainHoog::PreGit.configure do |config| config.plugins_dir = hoog_config.plugins_dir config.project_dir = hoog_config.project_dir config.plugins_conf = hoog_config.plugins_env #config.headline_on_success = "All is fine." #config.headline_on_failure = "Oops. Something went wrong" end plugin_list = CaptainHoog::PluginList.new('<%=config[:type] %>', config: hoog_config) CaptainHoog::PreGit.run(plugins_list: plugin_list)