Class: PactBroker::Client::PublicationTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/pact_broker/client/tasks/publication_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, &block) ⇒ PublicationTask

Returns a new instance of PublicationTask.



28
29
30
31
32
33
34
35
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 28

def initialize name = nil, &block
  @name = name
  @auto_detect_version_properties = nil
  @version_required = false
  @pattern = 'spec/pacts/*.json'
  @pact_broker_base_url = 'http://pact-broker'
  rake_task &block
end

Instance Attribute Details

#auto_detect_version_propertiesObject

Returns the value of attribute auto_detect_version_properties.



24
25
26
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 24

def auto_detect_version_properties
  @auto_detect_version_properties
end

#branchObject

Returns the value of attribute branch.



24
25
26
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 24

def branch
  @branch
end

#build_urlObject

Returns the value of attribute build_url.



24
25
26
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 24

def build_url
  @build_url
end

#consumer_versionObject

Returns the value of attribute consumer_version.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def consumer_version
  @consumer_version
end

#pact_broker_base_urlObject

Returns the value of attribute pact_broker_base_url.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def pact_broker_base_url
  @pact_broker_base_url
end

#pact_broker_basic_authObject

Returns the value of attribute pact_broker_basic_auth.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def pact_broker_basic_auth
  @pact_broker_basic_auth
end

#pact_broker_tokenObject

Returns the value of attribute pact_broker_token.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def pact_broker_token
  @pact_broker_token
end

#patternObject

Returns the value of attribute pattern.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def pattern
  @pattern
end

#tagObject Also known as: tags

Returns the value of attribute tag.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def tag
  @tag
end

#tag_with_git_branchObject

Returns the value of attribute tag_with_git_branch.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def tag_with_git_branch
  @tag_with_git_branch
end

#write_methodObject

Returns the value of attribute write_method.



23
24
25
# File 'lib/pact_broker/client/tasks/publication_task.rb', line 23

def write_method
  @write_method
end