#!/usr/bin/env ruby require 'captain_hoog' require 'yaml' # read config hoog_config = YAML.load_file(File.join('<%= config[:root_dir] %>', 'hoogfile.yml')) # Adjust settings CaptainHoog::PreGit.configure do |config| config.plugins_dir = hoog_config['plugins_dir'] config.project_dir = hoog_config['project_dir'] #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)