Skip to content

Instantly share code, notes, and snippets.

@bethesque
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bethesque/ab8681dfd1626afd7f04 to your computer and use it in GitHub Desktop.
Save bethesque/ab8681dfd1626afd7f04 to your computer and use it in GitHub Desktop.
Pact Broker document
PactBroker::Client::PacticipantDocumentationTask.new do | pacticipant |
pacticipant.repository git: 'git@github.com/bethesque/some-consumer'
pacticipant.doc 'http://github.com/bethesque/some-consumer'
end
# Overthinking
PactBroker::Client::PacticipantDocumentationTask.new do | pacticipant |
pacticipant.description "Does something"
pacticipant.repository 'git@github.com/bethesque/some-consumer'
pacticipant.docs 'http://github.com/bethesque/some-consumer', 'http://treasuremap/some-consumer'
pacticipant.contexts 'Business Systems', 'Group platform'
end
# Just one doc
PactBroker::Client::PacticipantDocumentationTask.new do | pacticipant |
pacticipant.repository git: 'git@github.com/bethesque/some-consumer'
pacticipant.doc 'http://github.com/bethesque/some-consumer'
end
# Fliexible links, where each link gets a label
PactBroker::Client::PacticipantDocumentationTask.new do | pacticipant |
pacticipant.repository git: 'git@github.com/bethesque/some-consumer'
pacticipant.links "Homepage" => 'http://github.com/bethesque/some-consumer',
"Production service" => 'http://bethesque.com/some-consumer'
end
# Doc and links
PactBroker::Client::PacticipantDocumentationTask.new do | pacticipant |
pacticipant.repository git: 'git@github.com/bethesque/some-consumer'
pacticipant.doc 'http://github.com/bethesque/some-consumer'
pacticipant.links "Production service" => 'http://bethesque.com/some-consumer'
end
@bethesque
Copy link
Author

Bethtest comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment