mononoke: opsfiles: Port chef_chef_test.sh hook

Summary: Porting chef_chef_test.sh hook into mononoke rust hooks

Reviewed By: HarveyHunt

Differential Revision: D21040287

fbshipit-source-id: 663d79f6d1e467be57fd82c7e06660971c8bd90d
This commit is contained in:
Egor Tkachenko 2020-04-16 16:43:20 -07:00 committed by Facebook GitHub Bot
parent 13c6ccdab6
commit ba141a2d70

View File

@ -13,7 +13,8 @@ use crate::errors::*;
use crate::facebook::rust_hooks::{
always_fail_changeset::AlwaysFailChangeset, block_cross_repo_commits::BlockCrossRepoCommits,
block_empty_commit::BlockEmptyCommit, check_nocommit::CheckNocommitHook,
check_unittests::CheckUnittestsHook, conflict_markers::ConflictMarkers, deny_files::DenyFiles,
check_unittests::CheckUnittestsHook, chef_test_hosts::ChefTestHostsHook,
conflict_markers::ConflictMarkers, deny_files::DenyFiles,
ensure_valid_email::EnsureValidEmailHook,
gitattributes_textdirectives::GitattributesTextDirectives,
limit_commit_message_length::LimitCommitMessageLength, limit_commitsize::LimitCommitsize,
@ -70,6 +71,7 @@ pub fn load_hooks(
"ensure_valid_email" => {
ChangesetHook(Box::new(EnsureValidEmailHook::new(fb, &hook.config)?))
}
"chef_test_hosts" => ChangesetHook(Box::new(ChefTestHostsHook::new())),
"gitattributes-textdirectives" => {
FileHook(Box::new(GitattributesTextDirectives::new()?))
}