Add this line to your application's Gemfile:
gem 'cloudbuildviz'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cloudbuildviz
graphviz
should also be installed
For Mac
brew install graphviz
From CLI
bundle exec graph make cloudbuildfile.yaml render_image.png
For a Ruby or Rails application
require 'cloudbuildviz'
class ApplicationController < ActionController::Base
.
.
.
def make_build_graph
Cloudbuildviz.make('cloudbuildfile.yaml', '/tmp/images/render_image.png')
end
.
.
.
end
Bug reports and pull requests are welcome on GitHub at https://github.com/weiyuan-lane/cloudbuildviz.
The gem is available as open source under the terms of the MIT License.