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.



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

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]

  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

#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