Sha256: 0770ef6e924149e7e3bc2601499f4d385a0b8244bcc2227f91a19b352f5d6043
Contents?: true
Size: 831 Bytes
Versions: 7
Compression:
Stored size: 831 Bytes
Contents
require 'bundler/gem_tasks' require 'yard' desc 'Generate API documentation' YARD::Rake::YardocTask.new desc 'Download the latest schema and build a new client' task :build do sh 'curl -o schema.json -H "Accept: application/vnd.heroku+json; version=3" https://api.heroku.com/schema' sh 'bundle exec heroics-generate -H "Accept: application/vnd.heroku+json; version=3" -c "#{Dir.home}/.heroics/platform-api" PlatformAPI schema.json https://api.heroku.com > lib/platform-api/client.rb' end desc 'Publish API documentation' task :publish do sh 'rake yard' sh 'cp -R doc /tmp/platform-api-doc' sh 'git checkout gh-pages' sh 'cp -R /tmp/platform-api-doc/* .' sh 'rm -rf /tmp/platform-api-doc' sh 'git add .' sh 'git commit -am "Rebuild documentation"' sh 'git push origin gh-pages' sh 'git checkout master' end
Version data entries
7 entries across 7 versions & 1 rubygems