class ConcourseObjects::Resources::SemVer
Constants
- GITHUB_OWNER
- GITHUB_REPOSITORY
- GITHUB_VERSION
- RESOURCE_LICENSE
- RESOURCE_NAME
Public Class Methods
new(options = {}) { |this, options| ... }
click to toggle source
Calls superclass method
ConcourseObjects::Object::new
# File lib/concourse-objects/resources/semver.rb, line 115 def initialize(options = {}) super(options.merge(type: "semver")) do |this, options| if this.source? options.fetch(:source).yield_self do |source| case this.source.driver when "git" then Source::Git.(source) when "s3" then Source::S3.(source) when "swift" then Source::Swift.(source) when "gcs" then Source::GCS.(source) else Source.(source) end.yield_self do |source| this.send(:instance_variable_set, :@source, source) end end end yield this, options if block_given? end end