summaryrefslogtreecommitdiff
path: root/spec/gitlab_keys_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove keys from authorized_keys in-placeJacob Vosmaer2015-07-161-3/+5
| | | | | | This will speed up the rm-key operation. The downside is that authorized_keys will not shrink when you remove a key. If this ever becomes a problem it can be fixed by running 'rake gitlab:shell:setup'.
* Added list-keys command and specDavid Martin2014-10-151-0/+13
| | | | | | | | | | | | | | | | | | Removed puts and tidied up regex Address the hound Address the hound, again Use single quotes Add back travis.yml file Remove travis.yml, only keep on fh-master Use single quotes Use single quotes
* Improve coverage.Gabor Nagy2014-06-231-0/+20
|
* Create keys fixtures in testDmitriy Zaporozhets2014-05-311-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Put authorized_keys.lock in the .ssh directoryJacob Vosmaer2014-05-301-1/+12
|
* Use lock file when add or remove keys from authorized_keys fileDmitriy Zaporozhets2014-04-181-0/+36
| | | | | | This prevents concurrent modification of authorized_keys file Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add gitlab-keys batch-add-keysJacob Vosmaer2014-03-141-0/+42
| | | | | This command is intended to be called by the GitLab Rails code when restoring an application backup.
* Stub file writing in testsJacob Vosmaer2013-11-251-6/+11
|
* Fix return values in GitlabKeysJacob Vosmaer2013-11-201-4/+23
|
* Refactor file writing testsJacob Vosmaer2013-11-201-33/+34
|
* More file writing tests for GitlabKeysJacob Vosmaer2013-11-051-27/+33
|
* Remove sed invocation from GitlabKeysJacob Vosmaer2013-11-021-5/+10
|
* Use Kernel#open to append lines to authorized_keysJacob Vosmaer2013-10-311-2/+5
|
* Use Tempfile instead of `sed -i`Jacob Vosmaer2013-07-191-1/+4
| | | | | | The syntax for `sed -i` is incompatible between GNU sed and BSD sed. By Tempfile from the Ruby standard library we can avoid using the `-i` option of sed.
* Use :warn instead of :error for invalid commands.ash2013-05-181-2/+2
|
* Add logging specs for gitlab-keys.ash2013-05-171-0/+21
|
* Fix tests and version up to 1.4.0v1.4.0Dmitriy Zaporozhets2013-04-301-1/+1
|
* test GitlabKeys execDmitriy Zaporozhets2013-03-111-19/+35
|
* fix keys testsDmitriy Zaporozhets2013-02-091-1/+1
|
* Updated with #{}Michael2013-02-071-2/+2
|
* Read auth keys file from configMichael2013-02-071-2/+2
|
* Fix key removeDmitriy Zaporozhets2013-02-051-1/+1
|
* add/remove keys by idDmitriy Zaporozhets2013-02-051-6/+6
|
* gitlab-initDmitriy Zaporozhets2013-02-051-1/+1
|
* gitlab-keys with testsDmitriy Zaporozhets2013-02-051-0/+47