Sha256: 11721cc561a759ad27c529658fbc71c2b971a533bebf22f6a009f844a02e85ec

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 Bytes

Contents

#!/usr/bin/env ruby
require 'captain_hoog'
cucumber_hoogfile = File.expand_path(File.join(File.dirname(__FILE__),
                                               "config", "cucumber"))

hoog_config = CaptainHoog::Hoogfile.config(cucumber_hoogfile)

plugin_list = CaptainHoog::PluginList.new('pre-commit',
                                          config: hoog_config)
# 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
end

CaptainHoog::PreGit.run(plugins_list: plugin_list)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
captain_hoog-2.0.0 spec/fixtures/pre-commit-pass
captain_hoog-1.1.1 spec/fixtures/pre-commit-pass
captain_hoog-1.1.0 spec/fixtures/pre-commit-pass
captain_hoog-1.0.2 spec/fixtures/pre-commit-pass
captain_hoog-1.0.1 spec/fixtures/pre-commit-pass