class Vx::Builder::Task
Attributes
branch[R]
build_id[R]
build_number[R]
build_url[R]
cache_read_url[R]
cache_write_url[R]
env_vars[R]
job_id[R]
job_number[R]
name[R]
project_host[R]
project_token[R]
pull_request_id[R]
sha[R]
src[R]
ssh_keys[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/vx/builder/task.rb, line 10 def initialize(options = {}) @name = options[:name] @src = options[:src] @sha = options[:sha] @job_id = options[:job_id] @build_id = options[:build_id] @build_url = options[:build_url] @ssh_keys = options[:ssh_keys] @env_vars = options[:env_vars] || {} @branch = options[:branch] @pull_request_id = options[:pull_request_id] @build_number = options[:build_number] @job_number = options[:job_number] @project_host = options[:project_host] @project_token = options[:project_token] @cache_read_url = options[:cache_read_url] @cache_write_url = options[:cache_write_url] validate! end
Private Instance Methods
validate!()
click to toggle source
# File lib/vx/builder/task.rb, line 33 def validate! (name && src && sha && ssh_keys && branch && job_id && build_id && build_url && build_number && job_number && project_host) or raise(MissingKeys) end