Sha256: 07a2f1c99f13e1876b402b5748fb98b61e018d9c70f4810f037257ac6d95bf94
Contents?: true
Size: 873 Bytes
Versions: 18
Compression:
Stored size: 873 Bytes
Contents
JenkinsPipelineBuilder.registry.entries.each do |type, path| singular_type = type.to_s.singularize define_method singular_type do |&block| set = JenkinsPipelineBuilder::ExtensionSet.new singular_type, path, &block return false unless set.valid? JenkinsPipelineBuilder.registry.register([:job, type], set) versions = set.extensions.map(&:min_version) JenkinsPipelineBuilder.logger.info "Successfully registered #{set.name} for versions #{versions}" if set.announced true end end def job_attribute(&block) set = JenkinsPipelineBuilder::ExtensionSet.new :job_attribute, &block return false unless set.valid? JenkinsPipelineBuilder.registry.register([:job], set) versions = set.extensions.map(&:min_version) JenkinsPipelineBuilder.logger.info "Successfully registered #{set.name} for versions #{versions}" if set.announced true end
Version data entries
18 entries across 18 versions & 1 rubygems