diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-21 10:47:26 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-21 10:47:26 +0100 |
commit | fa2a5468368a2ed65de2d7be079a443a4180d171 (patch) | |
tree | 08c6c66317ceb91f39d3a3cc16fe988ee78f44bf /lib | |
parent | 7c6063dda2cfec609a0cb79948f7c573eb5c9710 (diff) | |
download | gitlab-ce-fa2a5468368a2ed65de2d7be079a443a4180d171.tar.gz |
Rename pipeline expressions token for checking equality
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/expression/equals.rb (renamed from lib/gitlab/ci/pipeline/expression/equality.rb) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/equality.rb b/lib/gitlab/ci/pipeline/expression/equals.rb index 668b581df5a..8466891f66a 100644 --- a/lib/gitlab/ci/pipeline/expression/equality.rb +++ b/lib/gitlab/ci/pipeline/expression/equals.rb @@ -2,18 +2,17 @@ module Gitlab module Ci module Pipeline module Expression - class Equality < Expression::Token + class Equals < Expression::Token PATTERN = /==/.freeze def initialize(left, right) + @left = left + @right = right end def evaluate(**variables) @left.evaluate(variables) == @right.evaluate(variables) end - - def self.build(string) - end end end end |