diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-06 13:10:50 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-06 13:16:34 +0200 |
commit | 3f85c3ef1629870e22f6a676585e8de80e5120c3 (patch) | |
tree | 141a1ef7d8fb0eaa79e203331d36671a60993070 /lib | |
parent | 2c01b19f8f55c7105506cdbe964d24d0a3c6dfc4 (diff) | |
download | gitlab-ce-3f85c3ef1629870e22f6a676585e8de80e5120c3.tar.gz |
Initial support for closing environments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/node/environment.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/node/environment.rb b/lib/gitlab/ci/config/node/environment.rb index d388ab6b879..daa115f9017 100644 --- a/lib/gitlab/ci/config/node/environment.rb +++ b/lib/gitlab/ci/config/node/environment.rb @@ -8,7 +8,7 @@ module Gitlab class Environment < Entry include Validatable - ALLOWED_KEYS = %i[name url] + ALLOWED_KEYS = %i[name url close] validations do validate do @@ -35,6 +35,8 @@ module Gitlab length: { maximum: 255 }, addressable_url: true, allow_nil: true + + validates :close, boolean: true, allow_nil: true end end |