Skip to content

Commit

Permalink
feat: add can-i-deploy usage to README
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 12, 2018
1 parent c591d36 commit 99bf770
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions packaging/Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'http://rubygems.org'

gem "pact"
gem "pact-mock_service"
gem "pact-provider-verifier"
gem "pact_broker-client"
11 changes: 11 additions & 0 deletions packaging/README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ This version (<%= ENV.fetch('VERSION') %>) of the Pact standalone executables pa
<a name="pact-broker-client"></a>
### pact-broker client

<a name="pact-broker-client-publish"></a>
#### publish

```
<%= pact_publish_usage %>
```

<a name="pact-broker-client-can-i-deploy"></a>
#### can-i-deploy

```
<%= pact_broker_can_i_deploy %>
```

1 change: 1 addition & 0 deletions packaging/generate_readme_contents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
pact_stub_service_usage = `bundle exec pact-stub-service help`
pact_provider_verifier_usage = `bundle exec pact-provider-verifier help`
pact_publish_usage = `bundle exec pact-broker help publish`
pact_broker_can_i_deploy = `bundle exec pact-broker help can-i-deploy`
puts ERB.new(ARGF.read).result(binding)
9 changes: 9 additions & 0 deletions tasks/package.rake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ namespace :package do
sh "rm -rf build/tmp"
sh "rm -f build/vendor/*/*/cache/*"
end

task :generate_readme do
Bundler.with_clean_env do
sh "mkdir -p build/tmp"
sh "cp packaging/Gemfile packaging/Gemfile.lock build/tmp/"
sh "cd build/tmp && env BUNDLE_IGNORE_CONFIG=1 bundle install --path ../vendor --without development"
generate_readme
end
end
end

file "build/traveling-ruby-#{TRAVELING_RUBY_VERSION}-linux-x86.tar.gz" do
Expand Down

0 comments on commit 99bf770

Please sign in to comment.