summaryrefslogtreecommitdiff
path: root/lib/gitlab_keys.rb
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-08-08 17:38:38 +0000
committerRobert Speicher <robert@gitlab.com>2018-08-08 17:38:38 +0000
commit3aaf4751e09262c53544a1987f59b1308af9b6c1 (patch)
tree019332604ac4853db5d80bca95f229c95d1fc298 /lib/gitlab_keys.rb
parentc6577e0d75f51b017f2f332838b97c3ca5b497c0 (diff)
parent014691e057537a803e22223ea072065cc91938a7 (diff)
downloadgitlab-shell-3aaf4751e09262c53544a1987f59b1308af9b6c1.tar.gz
Merge branch 'ash.mckenzie/srp-refactor' into 'master'
Refactor that focuses on SRP improvements See merge request gitlab-org/gitlab-shell!214
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r--lib/gitlab_keys.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
index 3ee2882..d0463e2 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -9,6 +9,7 @@ class GitlabKeys # rubocop:disable Metrics/ClassLength
attr_accessor :auth_file, :key
+ # TODO: whatever is not a great name
def self.command(whatever)
"#{ROOT_PATH}/bin/gitlab-shell #{whatever}"
end
@@ -21,6 +22,7 @@ class GitlabKeys # rubocop:disable Metrics/ClassLength
command(key_id)
end
+ # TODO: whatever is not a great name
def self.whatever_line(command, trailer)
"command=\"#{command}\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty #{trailer}"
end