Module: JenkinsPipelineBuilder

Defined in:
lib/jenkins_pipeline_builder/view.rb,
lib/jenkins_pipeline_builder.rb,
lib/jenkins_pipeline_builder/job.rb,
lib/jenkins_pipeline_builder/utils.rb,
lib/jenkins_pipeline_builder/version.rb,
lib/jenkins_pipeline_builder/cli/base.rb,
lib/jenkins_pipeline_builder/cli/list.rb,
lib/jenkins_pipeline_builder/cli/view.rb,
lib/jenkins_pipeline_builder/compiler.rb,
lib/jenkins_pipeline_builder/generator.rb,
lib/jenkins_pipeline_builder/promotion.rb,
lib/jenkins_pipeline_builder/cli/helper.rb,
lib/jenkins_pipeline_builder/extensions.rb,
lib/jenkins_pipeline_builder/cli/describe.rb,
lib/jenkins_pipeline_builder/cli/pipeline.rb,
lib/jenkins_pipeline_builder/extension_set.rb,
lib/jenkins_pipeline_builder/job_collection.rb,
lib/jenkins_pipeline_builder/module_registry.rb,
lib/jenkins_pipeline_builder/remote_dependencies.rb,
lib/jenkins_pipeline_builder/pull_request_generator.rb

Overview

Copyright © 2014 Constant Contact

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Defined Under Namespace

Modules: CLI Classes: Compiler, Extension, ExtensionSet, Generator, Job, JobCollection, ModuleRegistry, Promotion, PullRequestGenerator, RemoteDependencies, Utils, View

Constant Summary collapse

VERSION =
'1.7.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject (readonly)

Returns the value of attribute client.



41
42
43
# File 'lib/jenkins_pipeline_builder.rb', line 41

def client
  @client
end

.credentialsObject

Returns the value of attribute credentials.



41
42
43
# File 'lib/jenkins_pipeline_builder.rb', line 41

def credentials
  @credentials
end

.debugObject (readonly)

Returns the value of attribute debug.



41
42
43
# File 'lib/jenkins_pipeline_builder.rb', line 41

def debug
  @debug
end

.file_modeObject (readonly)

Returns the value of attribute file_mode.



41
42
43
# File 'lib/jenkins_pipeline_builder.rb', line 41

def file_mode
  @file_mode
end

.loggerObject



71
72
73
# File 'lib/jenkins_pipeline_builder.rb', line 71

def logger
  @logger ||= client ? client.logger : Logger.new(STDOUT)
end

Class Method Details

.debug!Object



55
56
57
58
# File 'lib/jenkins_pipeline_builder.rb', line 55

def debug!
  @debug = true
  logger.level = Logger::DEBUG
end

.file_mode!Object



47
48
49
# File 'lib/jenkins_pipeline_builder.rb', line 47

def file_mode!
  @file_mode = true
end

.generatorObject



43
44
45
# File 'lib/jenkins_pipeline_builder.rb', line 43

def generator
  @_generator ||= Generator.new
end

.no_debug!Object



60
61
62
63
# File 'lib/jenkins_pipeline_builder.rb', line 60

def no_debug!
  @debug = false
  logger.level = Logger::INFO
end

.normal_mode!Object



51
52
53
# File 'lib/jenkins_pipeline_builder.rb', line 51

def normal_mode!
  @file_mode = false
end

.registryObject



75
76
77
# File 'lib/jenkins_pipeline_builder.rb', line 75

def registry
  generator.module_registry
end