Thus far, this is an over-engineered solution that does very little.
I'm using it as a means of pushing out my understanding of cucumber and fast unit tests.
You will need to install Graphviz
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install diaspora-cluster-creator
Once installed you can ask diaspora-cluster for help
$ diaspora-cluster -h
Or request the defaults
Or you can specify names
$ diaspora-cluster names="Sparta [T2 E1 R3], Athens [T-2], Corinth [R3 T2 E1], Ephesus, Rhodes [T4]"
Or perhaps you prefer a PNG
$ diaspora-cluster filename=output.png names="Sparta [T2 E1 R3], Athens [T-2], Corinth [R3 T2 E1], Ephesus, Rhodes [T4]"
Take a look at /features/command_line.feature for better definitions.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request