Parse commands to enable feature flags
This adds the possibility to enable features for GitLab shell by command.
The first feature being recognized is "Discover": It's the command
that is executed when running ssh git@gitlab.example.com
and is
called without a command.
The gitlab key id or username is already parsed from the command line arguments.
In a first step we'll only support communicating with GitLab-rails using unix sockets. So features will not be enabled if the GitLab-url is using a different protocol. The url for this read from the config yaml.
Pending ruby-specs have been added for the gitlab-shell command.
This is a first step in #158 (closed)
TL;DR: This allows us to break gitlab-shell by enabling a feature. It will then output: No feature is implemented yet
Edited by Bob Van Landuyt