Sha256: 51624f5625a7dce04bffa7ff11fa7213640b1243bdfeb84d992c84e7be35deae
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
module Vx module Builder class Task attr_reader :name, :src, :sha, :deploy_key, :branch, :pull_request_id, :cache_url_prefix, :job_id, :build_id, :build_number, :job_number def initialize(options = {}) @name = options[:name] @src = options[:src] @sha = options[:sha] @job_id = options[:job_id] @build_id = options[:build_id] @deploy_key = options[:deploy_key] @branch = options[:branch] @pull_request_id = options[:pull_request_id] @cache_url_prefix = options[:cache_url_prefix] @build_number = options[:build_number] @job_number = options[:job_number] validate! end private def validate! (name && src && sha && deploy_key && branch && job_id && build_id && build_number && job_number) or raise(MissingKeys) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems