-
- Downloads
Support falling back to ruby version of checkers
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).
Showing
- Makefile 6 additions, 0 deletionsMakefile
- bin/gitlab-shell-authorized-keys-check 1 addition, 42 deletionsbin/gitlab-shell-authorized-keys-check
- bin/gitlab-shell-authorized-keys-check 1 addition, 42 deletionsbin/gitlab-shell-authorized-keys-check
- bin/gitlab-shell-authorized-keys-check-ruby 42 additions, 0 deletionsbin/gitlab-shell-authorized-keys-check-ruby
- bin/gitlab-shell-authorized-principals-check 1 addition, 36 deletionsbin/gitlab-shell-authorized-principals-check
- bin/gitlab-shell-authorized-principals-check 1 addition, 36 deletionsbin/gitlab-shell-authorized-principals-check
- bin/gitlab-shell-authorized-principals-check-ruby 36 additions, 0 deletionsbin/gitlab-shell-authorized-principals-check-ruby
- go/cmd/gitlab-shell/main.go 2 additions, 16 deletionsgo/cmd/gitlab-shell/main.go
- go/internal/command/command.go 1 addition, 2 deletionsgo/internal/command/command.go
- go/internal/command/command_test.go 12 additions, 2 deletionsgo/internal/command/command_test.go
- go/internal/command/commandargs/command_args.go 28 additions, 11 deletionsgo/internal/command/commandargs/command_args.go
- go/internal/command/commandargs/command_args_test.go 27 additions, 18 deletionsgo/internal/command/commandargs/command_args_test.go
- go/internal/command/fallback/fallback.go 15 additions, 7 deletionsgo/internal/command/fallback/fallback.go
- go/internal/command/fallback/fallback_test.go 16 additions, 1 deletiongo/internal/command/fallback/fallback_test.go
- spec/gitlab_shell_authorized_keys_check_spec.rb 62 additions, 32 deletionsspec/gitlab_shell_authorized_keys_check_spec.rb
- spec/gitlab_shell_authorized_principals_check_spec.rb 82 additions, 0 deletionsspec/gitlab_shell_authorized_principals_check_spec.rb
bin/gitlab-shell-authorized-keys-check
0 → 120000
bin/gitlab-shell-authorized-keys-check-ruby
0 → 100755
bin/gitlab-shell-authorized-principals-check
0 → 120000
Please register or sign in to comment