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

Version Path
jenkins_pipeline_builder-1.10.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.9.1 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.9.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.8.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.7.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.5.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.3.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.2.1 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.2.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.1.5 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.1.4 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.1.3 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.1.2 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.1.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-1.0.0 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-0.16.3 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-0.16.2 lib/jenkins_pipeline_builder/extension_dsl.rb
jenkins_pipeline_builder-0.16.0 lib/jenkins_pipeline_builder/extension_dsl.rb