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
-
#consumer_version ⇒ Object
Returns the value of 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.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#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.
20 21 22 23 24 25 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 20 def initialize name = nil, &block @name = name @pattern = 'spec/pacts/*.json' @pact_broker_base_url = 'http://pact-broker' rake_task &block end |
Instance Attribute Details
#consumer_version ⇒ Object
Returns the value of attribute consumer_version.
18 19 20 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 18 def consumer_version @consumer_version end |
#pact_broker_base_url ⇒ Object
Returns the value of attribute pact_broker_base_url.
18 19 20 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 18 def pact_broker_base_url @pact_broker_base_url end |
#pact_broker_basic_auth ⇒ Object
Returns the value of attribute pact_broker_basic_auth.
18 19 20 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 18 def pact_broker_basic_auth @pact_broker_basic_auth end |
#pattern ⇒ Object
Returns the value of attribute pattern.
18 19 20 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 18 def pattern @pattern end |
#write_method ⇒ Object
Returns the value of attribute write_method.
18 19 20 |
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 18 def write_method @write_method end |