Sha256: 4b151e2dc7d6652520ba24a99b79ac9d4fc7659e4c3937036beac5f671b9c3f9

Contents?: true

Size: 750 Bytes

Versions: 6

Compression:

Stored size: 750 Bytes

Contents

#!/usr/bin/env ruby
require 'captain_hoog'

plugins_path = File.expand_path(File.join(File.dirname(__FILE__),
                                          "plugins",
                                          "test_plugins",
                                          "failing"))

hoog_config = {
  'exclude' => [],
  'plugins_dir' => plugins_path,
  'project_dir' => 'with_git',
  'pre-commit' => ['foo']
}

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']
end

CaptainHoog::PreGit.run(plugins_list: plugin_list)

Version data entries

6 entries across 6 versions & 1 rubygems

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