Class: Gitlab::Ci::Config::Entry::Retry::UnknownStrategy

Inherits:
Gitlab::Config::Entry::Node show all
Defined in:
lib/gitlab/ci/config/entry/retry.rb

Constant Summary

Constants inherited from Gitlab::Config::Entry::Node

Gitlab::Config::Entry::Node::InvalidError

Instance Attribute Summary

Attributes inherited from Gitlab::Config::Entry::Node

#config, #default, #deprecation, #description, #key, #metadata, #parent

Instance Method Summary collapse

Methods inherited from Gitlab::Config::Entry::Node

#[], #add_warning, #ancestors, #array?, aspects, #compose!, default, #descendants, #hash?, #initialize, #inspect, #integer?, #leaf?, #opt, #relevant?, #specified?, #string?, #valid?, #value, #warnings, with_aspect

Constructor Details

This class inherits a constructor from Gitlab::Config::Entry::Node

Instance Method Details

#errorsObject



77
78
79
# File 'lib/gitlab/ci/config/entry/retry.rb', line 77

def errors
  ["#{location} has to be either an integer or a hash"]
end

#locationObject



81
82
83
# File 'lib/gitlab/ci/config/entry/retry.rb', line 81

def location
  'retry config'
end