Class: Vx::Builder::Task
- Inherits:
-
Object
- Object
- Vx::Builder::Task
- Defined in:
- lib/vx/builder/task.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#build_id ⇒ Object
readonly
Returns the value of attribute build_id.
-
#build_number ⇒ Object
readonly
Returns the value of attribute build_number.
-
#build_url ⇒ Object
readonly
Returns the value of attribute build_url.
-
#cache_read_url ⇒ Object
readonly
Returns the value of attribute cache_read_url.
-
#cache_write_url ⇒ Object
readonly
Returns the value of attribute cache_write_url.
-
#env_vars ⇒ Object
readonly
Returns the value of attribute env_vars.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#job_number ⇒ Object
readonly
Returns the value of attribute job_number.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#project_host ⇒ Object
readonly
Returns the value of attribute project_host.
-
#project_token ⇒ Object
readonly
Returns the value of attribute project_token.
-
#pull_request_id ⇒ Object
readonly
Returns the value of attribute pull_request_id.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
-
#ssh_keys ⇒ Object
readonly
Returns the value of attribute ssh_keys.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Task
constructor
A new instance of Task.
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( = {}) @name = [:name] @src = [:src] @sha = [:sha] @job_id = [:job_id] @build_id = [:build_id] @build_url = [:build_url] @ssh_keys = [:ssh_keys] @env_vars = [:env_vars] || {} @branch = [:branch] @pull_request_id = [:pull_request_id] @build_number = [:build_number] @job_number = [:job_number] @project_host = [:project_host] @project_token = [:project_token] @cache_read_url = [:cache_read_url] @cache_write_url = [:cache_write_url] 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 |
#build_id ⇒ Object (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_number ⇒ Object (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_url ⇒ Object (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_url ⇒ Object (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_url ⇒ Object (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_vars ⇒ Object (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_id ⇒ Object (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_number ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def name @name end |
#project_host ⇒ Object (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_token ⇒ Object (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_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 |
#ssh_keys ⇒ Object (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 |