diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-11-02 18:53:07 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-11-02 18:53:07 +0100 |
commit | de09438aba040b00e7e579d4154353f861e20aa1 (patch) | |
tree | 9fb64de52e3c670e1c14f6b11467a9acfe6b63e4 /lib/gitlab_keys.rb | |
parent | 633042fd189f0e0ac62086a1e58ea0e3f89b8ff2 (diff) | |
download | gitlab-shell-de09438aba040b00e7e579d4154353f861e20aa1.tar.gz |
Use Ruby instead of the Bourne shell
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r-- | lib/gitlab_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb index 1185b0d..bc00867 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -47,6 +47,6 @@ class GitlabKeys end def clear - system("echo '# Managed by gitlab-shell' > #{auth_file}") + open(auth_file, 'w') { |file| file.puts '# Managed by gitlab-shell' } end end |