Decouple `bin/compile` and `bin/install` from code in `lib/`
This commit duplicates a small amount of Ruby code that is run at build (bin/compile
) or install (bin/install
) time.
We'll be removing lib/*
from gitlab-shell very soon, and these commands need to keep working when we do.
It would be nice to remove the dependency on Ruby for these stages, but the focus right now is run-time. A follow-up issue for removing this ruby entirely is in #213 (closed)
The bin/create-hooks
script is thoroughly obsolete now, and removed in !342 (diffs)
The bin/check
and bin/test-logger
scripts remain. The former needs a little more work, and is being handled in !341 (merged) . The latter will be removed as part of !338 (closed) - it's a helper for the ruby tests - so I'm not worried about touching it here.
Part of #173 (closed)