Commit fa2a5468 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename pipeline expressions token for checking equality

parent 7c6063dd
...@@ -2,18 +2,17 @@ module Gitlab ...@@ -2,18 +2,17 @@ module Gitlab
module Ci module Ci
module Pipeline module Pipeline
module Expression module Expression
class Equality < Expression::Token class Equals < Expression::Token
PATTERN = /==/.freeze PATTERN = /==/.freeze
def initialize(left, right) def initialize(left, right)
@left = left
@right = right
end end
def evaluate(**variables) def evaluate(**variables)
@left.evaluate(variables) == @right.evaluate(variables) @left.evaluate(variables) == @right.evaluate(variables)
end end
def self.build(string)
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment