diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-25 14:31:06 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-25 14:31:06 +0200 |
commit | 30f58cf3924610564ca95b0ac17b69d272e74f5f (patch) | |
tree | 94c327778f1123d24ceb4abbb007372e502eacad /lib | |
parent | 4f837f6690970bde315b8c9d76190ed45f15e49e (diff) | |
download | gitlab-ce-30f58cf3924610564ca95b0ac17b69d272e74f5f.tar.gz |
Add [] method for accessing ci entry dependencies
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/node/entry.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/config/node/entry.rb b/lib/gitlab/ci/config/node/entry.rb index 907d25a8c49..8717eabf81e 100644 --- a/lib/gitlab/ci/config/node/entry.rb +++ b/lib/gitlab/ci/config/node/entry.rb @@ -20,6 +20,10 @@ module Gitlab @validator.validate(:new) end + def [](key) + @entries[key] || Node::Undefined.new + end + def compose!(deps = nil) return unless valid? |