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: '[email protected]/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 '[email protected]/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: '[email protected]/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: '[email protected]/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: '[email protected]/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.