Commit graph

26 commits

Author SHA1 Message Date
Sonu Lohani
7bec77084c fix: Correct graph exported display message 2021-04-01 21:30:01 +02:00
Mohamed El Mouctar HAIDARA
5b2cdfbe23 style: Replace some format by f-string 2020-11-28 16:53:01 +01:00
Mohamed El Mouctar HAIDARA
871dbb58c2 refactor: Use an abstract class to provide the run() method to the CLIs
This also fixes the CLI to not run the parse method twice.
2020-11-28 16:53:01 +01:00
Mohamed El Mouctar HAIDARA
278ccccfa5 refactor: Move PostProcessor to a dedicated file 2020-11-28 16:53:01 +01:00
Mohamed El Mouctar HAIDARA
c0e913044b refactor: Remove post process from the grapher class 2020-11-28 16:53:01 +01:00
Mohamed El Mouctar HAIDARA
e75c487e25 fix: Fix display verbosity
Looks like the display is a singleton. As such we need to override it's verbosity after getting the singleton instance
2020-11-28 16:53:01 +01:00
Mohamed El Mouctar HAIDARA
645c942e17 refactor: Clean code and simplification
This introduces a new class BaseGrapher from which the PlaybookGrapher inherits. The goal is to split the PlaybookGrapher into simpler class later on. This change

Some methods have been refactored a little bit also.

style: Set instance attribute before creating objects
2020-11-28 16:53:01 +01:00
Mohamed El Mouctar HAIDARA
9ab880765c fix: Do not add the skipped tags to the graph 2020-08-01 18:55:33 +02:00
Mohamed El Mouctar HAIDARA
63a28dcf06 Fix cli help message for --inventory + update message 2020-06-27 00:57:06 +02:00
Mohamed El Mouctar Haidara
d875b04115
Support for Ansible 2.9 (#25)
* Drop support for ansible 2.7 and new CLI for ansible 2.9

* Remove python2 support
2020-01-13 20:17:10 +01:00
Mohamed El Mouctar Haidara
5f051df6f6
fix #18: New CLI compatible with ansible 2.8 (#19)
This change is needed because of https://github.com/ansible/ansible/pull/50069.

The new CLI in this PR should be used in the future when we drop support
for Ansible < 2.8
2019-06-10 01:00:49 +02:00
Mohamed El Mouctar HAIDARA
2c27b3e621 Note on my CLI and Ansible 2.9: optparse will be replaced by argparse 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
ee10caa4ba Pass all the options to the grapher 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
0619c9124a include_role_tasks as field of the Grapher, Update fixtures fake_role_2 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
c93c6d09ba fix: main should not return anything, update tests 2019-02-19 00:28:51 +01:00
Mohamed El Mouctar HAIDARA
a14f97b8c0 Fix args: make entrypoint args optional 2019-02-19 00:02:59 +01:00
Mohamed El Mouctar Haidara
a2529de6bf
Add support for include_tasks. Fixes #13 (#15)
* Add support for include_tasks. Fixes #13

* Use keyword arguments for _include_tasks_in_blocks

* Pass correct variable manager to load_list_of_blocks

* Option fail_on_undefined during template

* Rewrite test_grapher_simple_playbook

* add id to the root node, prefix for play and task ids

* make post_process_svg return output_filename

* Tests using Pyquery which use more user friendly
2019-02-18 02:52:54 +01:00
Mohamed El Mouctar HAIDARA
0209269e6c Pass sys.args to main 2018-12-31 15:16:23 +01:00
Mohamed El Mouctar HAIDARA
ecd1010c2b Output ansible version used with --version 2018-12-30 21:40:03 +01:00
Mohamed El Mouctar HAIDARA
fe6a616a6d Format files 2018-12-30 21:32:11 +01:00
Mohamed HAIDARA
afee0a6888 update the import for the display 2017-11-27 15:00:14 +01:00
Mohamed HAIDARA
47eabf7c57 Some tests for the cli 2017-11-27 11:42:21 +01:00
Mohamed HAIDARA
12bbf3648f support for vault and extra-vars 2017-11-17 17:39:57 +01:00
Mohamed HAIDARA
01a9f843e9 zsh:1: command not found: q 2017-11-17 11:41:28 +01:00
Mohamed HAIDARA
d9323d470a Fix Grapher : output_filename was none 2017-11-16 17:56:12 +01:00
Mohamed HAIDARA
439a042702 change cli. See issue #6 2017-11-16 17:55:23 +01:00