diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-09-30 16:45:27 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-04 10:54:31 +0300 |
commit | 7d46bd6128309e6ef1f3f4785889f5a0fef4de8f (patch) | |
tree | 2f278e639671954edc943ad212e305a929485517 /app/models/environment.rb | |
parent | 4be63f5b5bd9c0859f5ba2b91ecdbdcc57b69b98 (diff) |
Save a fetchable ref per deployement
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index 49e0a20640c..843f85883a1 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -47,4 +47,8 @@ class Environment < ActiveRecord::Base def update_merge_request_metrics? self.name == "production" end + + def ref_path + "refs/environments/#{Shellwords.shellescape(name)}/" + end end |