Class: PactBroker::Client::PublicationTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- PactBroker::Client::PublicationTask
- Defined in:
- lib/pact_broker/client/tasks/publication_task.rb
Instance Attribute Summary collapse
-
#auto_detect_version_properties ⇒ Object
Returns the value of attribute auto_detect_version_properties.
-
#branch ⇒ Object
writeonly
Sets the attribute branch.
-
#build_url ⇒ Object
writeonly
Sets the attribute build_url.
-
#consumer_version ⇒ Object
writeonly
Sets the attribute consumer_version.
-
#pact_broker_base_url ⇒ Object
Returns the value of attribute pact_broker_base_url.
-
#pact_broker_basic_auth ⇒ Object
Returns the value of attribute pact_broker_basic_auth.
-
#pact_broker_token ⇒ Object
Returns the value of attribute pact_broker_token.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#tag ⇒ Object
(also: #tags)
Returns the value of attribute tag.
-
#tag_with_git_branch ⇒ Object
Returns the value of attribute tag_with_git_branch.
-
#write_method ⇒ Object
Returns the value of attribute write_method.
Instance Method Summary collapse
-
#initialize(name = nil, &block) ⇒ PublicationTask
constructor
A new instance of PublicationTask.
Constructor Details
#initialize(name = nil, &block) ⇒ PublicationTask
Returns a new instance of PublicationTask.
32 33 34 35 36 37 38 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 32 def initialize name = nil, &block @name = name @auto_detect_version_properties = nil @pattern = 'spec/pacts/*.json' @pact_broker_base_url = 'http://pact-broker' rake_task &block end |
Instance Attribute Details
#auto_detect_version_properties ⇒ Object
Returns the value of attribute auto_detect_version_properties.
27 28 29 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 27 def auto_detect_version_properties @auto_detect_version_properties end |
#branch=(value) ⇒ Object
Sets the attribute branch
28 29 30 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 28 def branch=(value) @branch = value end |
#build_url=(value) ⇒ Object
Sets the attribute build_url
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def build_url=(value) @build_url = value end |
#consumer_version=(value) ⇒ Object
Sets the attribute consumer_version
28 29 30 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 28 def consumer_version=(value) @consumer_version = value end |
#pact_broker_base_url ⇒ Object
Returns the value of attribute pact_broker_base_url.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def pact_broker_base_url @pact_broker_base_url end |
#pact_broker_basic_auth ⇒ Object
Returns the value of attribute pact_broker_basic_auth.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def pact_broker_basic_auth @pact_broker_basic_auth end |
#pact_broker_token ⇒ Object
Returns the value of attribute pact_broker_token.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def pact_broker_token @pact_broker_token end |
#pattern ⇒ Object
Returns the value of attribute pattern.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def pattern @pattern end |
#tag ⇒ Object Also known as:
Returns the value of attribute tag.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def tag @tag end |
#tag_with_git_branch ⇒ Object
Returns the value of attribute tag_with_git_branch.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def tag_with_git_branch @tag_with_git_branch end |
#write_method ⇒ Object
Returns the value of attribute write_method.
26 27 28 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 26 def write_method @write_method end |