Last active
August 29, 2015 14:09
-
-
Save bethesque/ab8681dfd1626afd7f04 to your computer and use it in GitHub Desktop.
Pact Broker document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PactBroker::Client::PacticipantDocumentationTask.new do | pacticipant | | |
pacticipant.repository git: 'git@github.com/bethesque/some-consumer' | |
pacticipant.doc 'http://github.com/bethesque/some-consumer' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bethtest comment.