summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config/node/unspecified.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/config/node/unspecified.rb')
-rw-r--r--lib/gitlab/ci/config/node/unspecified.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/ci/config/node/unspecified.rb b/lib/gitlab/ci/config/node/unspecified.rb
new file mode 100644
index 00000000000..a7d1f6131b8
--- /dev/null
+++ b/lib/gitlab/ci/config/node/unspecified.rb
@@ -0,0 +1,19 @@
+module Gitlab
+ module Ci
+ class Config
+ module Node
+ ##
+ # This class represents an unspecified entry node.
+ #
+ # It decorates original entry adding method that indicates it is
+ # unspecified.
+ #
+ class Unspecified < SimpleDelegator
+ def specified?
+ false
+ end
+ end
+ end
+ end
+ end
+end