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.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/vx/builder/task.rb', line 8

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]
  @artifacts_url_prefix = options[:artifacts_url_prefix]

  validate!
end

Instance Attribute Details

#artifacts_url_prefixObject (readonly)

Returns the value of attribute artifacts_url_prefix.



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

def artifacts_url_prefix
  @artifacts_url_prefix
end

#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

#cache_url_prefixObject (readonly)

Returns the value of attribute cache_url_prefix.



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

def cache_url_prefix
  @cache_url_prefix
end

#deploy_keyObject (readonly)

Returns the value of attribute deploy_key.



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

def deploy_key
  @deploy_key
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

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
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