summaryrefslogtreecommitdiff
path: root/go/internal/command/fallback/fallback_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove feature flags and the fallback commandNick Thomas2019-09-201-84/+0
|
* Add Executable struct181-migrate-gitlab-shell-checks-fallbackPatrick Bajao2019-08-021-22/+11
| | | | | | | | | | This struct is responsible for determining the name and root dir of the executable. The `RootDir` property will be used to find the config. The `Name` property will be used to determine what `Command` and `CommandArgs` to be built.
* Support different CommandArgs typePatrick Bajao2019-07-311-0/+5
| | | | | | | | `CommandArgs` has been renamed to `Shell`. An interface has been added that includes `Executable()` and `Arguments()` method. The `BaseArgs` implement this methods and should be embeeded in each type.
* Support falling back to ruby version of checkersPatrick Bajao2019-07-291-1/+16
| | | | | | | | | | | | | | Rename the ruby scripts to have `-ruby` suffix and add a symlink for both to `./gitlab-shell`. The executable name will be used to determine how args will be parsed. For now, we only parse the arguments for gitlab-shell commands. If the executable is `gitlab-shell-authorized-keys-check` or `gitlab-shell-authorized-principals-check`, it'll always fallback to the ruby version. Ruby specs test the ruby script, the fallback from go to ruby and go implementation of both (still pending).
* Pass readWriter to Command constructorIgor Drozdov2019-05-201-3/+3
|
* Pass the root directory into the fallback commandNick Thomas2019-04-121-0/+75