class ConcourseObjects::Resources::RomVer
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/romver.rb, line 63 def initialize(options = {}) super(options.merge(type: "romver")) do |this, options| if this.source? options.fetch(:source).yield_self do |source| case this.source.driver when "git" then Source::Git.(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