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(name, src, sha, options = {}) ⇒ Task

Returns a new instance of Task.



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

def initialize(name, src, sha, options = {})
  @name             = name
  @src              = src
  @sha              = sha
  @deploy_key       = options[:deploy_key]
  @branch           = options[:branch]
  @pull_request_id  = options[:pull_request_id]
  @cache_url_prefix = options[:cache_url_prefix]

  validate!
end

Instance Attribute Details

#branch ⇒ Object (readonly)

Returns the value of attribute branch.



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

def branch
  @branch
end

#cache_url_prefix ⇒ Object (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_key ⇒ Object (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

#name ⇒ Object (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pull_request_id ⇒ Object (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

#sha ⇒ Object (readonly)

Returns the value of attribute sha.



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

def sha
  @sha
end

#src ⇒ Object (readonly)

Returns the value of attribute src.



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

def src
  @src
end