Class: Vx::Builder::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/vx/builder/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Task

Returns a new instance of Task.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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

Instance Attribute Details

#branchObject (readonly)

Returns the value of attribute branch.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def branch
  @branch
end

#build_idObject (readonly)

Returns the value of attribute build_id.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def build_id
  @build_id
end

#build_numberObject (readonly)

Returns the value of attribute build_number.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def build_number
  @build_number
end

#build_urlObject (readonly)

Returns the value of attribute build_url.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def build_url
  @build_url
end

#cache_read_urlObject (readonly)

Returns the value of attribute cache_read_url.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def cache_read_url
  @cache_read_url
end

#cache_write_urlObject (readonly)

Returns the value of attribute cache_write_url.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def cache_write_url
  @cache_write_url
end

#env_varsObject (readonly)

Returns the value of attribute env_vars.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def env_vars
  @env_vars
end

#job_idObject (readonly)

Returns the value of attribute job_id.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def job_id
  @job_id
end

#job_numberObject (readonly)

Returns the value of attribute job_number.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def job_number
  @job_number
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def name
  @name
end

#project_hostObject (readonly)

Returns the value of attribute project_host.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def project_host
  @project_host
end

#project_tokenObject (readonly)

Returns the value of attribute project_token.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def project_token
  @project_token
end

#pull_request_idObject (readonly)

Returns the value of attribute pull_request_id.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def pull_request_id
  @pull_request_id
end

#shaObject (readonly)

Returns the value of attribute sha.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def sha
  @sha
end

#srcObject (readonly)

Returns the value of attribute src.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def src
  @src
end

#ssh_keysObject (readonly)

Returns the value of attribute ssh_keys.



5
6
7
# File 'lib/vx/builder/task.rb', line 5

def ssh_keys
  @ssh_keys
end