Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-04-12 10:58:49 +0300
committerJames Lopez <james@jameslopez.es>2018-04-12 10:58:49 +0300
commit0015fc7d205cd86d0347385372791e470ff3ed3a (patch)
treeaf2ab0a4d5f602710968fe01736ec60cacee09e4 /lib
parent24a654db62631ecf08687530e6ca93002340d36a (diff)
parentc393a44f2fa5e161c8055bc589f10d4ee2e1d8a0 (diff)
Merge remote-tracking branch 'origin/10-7-stable' into 10-7-stable-prepare-rc5
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/variables/collection/item.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/ci/variables/collection/item.rb b/lib/gitlab/ci/variables/collection/item.rb
index 23ed71db8b0..d00e5b07f95 100644
--- a/lib/gitlab/ci/variables/collection/item.rb
+++ b/lib/gitlab/ci/variables/collection/item.rb
@@ -3,12 +3,9 @@ module Gitlab
module Variables
class Collection
class Item
- def initialize(**options)
+ def initialize(key:, value:, public: true, file: false)
@variable = {
- key: options.fetch(:key),
- value: options.fetch(:value),
- public: options.fetch(:public, true),
- file: options.fetch(:files, false)
+ key: key, value: value, public: public, file: file
}
end