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
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-04-11 11:07:15 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-04-11 11:07:15 +0300
commit07c781dcc090dec86aa920d95984923f9d5a916f (patch)
tree02caea8ece8c28f59e004d1c21d1513f23a0960e /lib/gitlab/ci
parent7e3bb679a92156304972e2db1ae49c9b0e4cd188 (diff)
Fix file-specific variables collection item option
Diffstat (limited to 'lib/gitlab/ci')
-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