Commit graph

18 commits

Author SHA1 Message Date
Him You Ten
87ce503767 added stdout and stderr outputs (#1900)
* added stdout and stderr outputs

Added stdout and stderr outputs of the results from composer as the current msg output strips \n so very hard to read when debugging

* using stdout for fail_json

using stdout for fail_json so we get the stdout_lines array
2016-12-08 11:34:04 -05:00
Toshio Kuratomi
ad0d2c1747 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
2016-12-08 11:33:44 -05:00
Ramunas Dronga
86bea2d6ab fixed composer usage example 2016-12-08 11:33:31 -05:00
Ramunas Dronga
ae18a1d877 added constraint for space in composer command 2016-12-08 11:33:31 -05:00
Ramunas
662fa86f07 removed check for empty composer response 2016-12-08 11:33:31 -05:00
Ramunas Dronga
6e4b42ebbc added version info for params 'arguments' 2016-12-08 11:33:31 -05:00
Ramunas Dronga
ae59ea7deb allow specify arguments for composer 2016-12-08 11:33:31 -05:00
Rene Moser
859b2f7948 composer: smarter arguments handling
To get all available options in json for each command, `composer help <command> --format=json` can be used. This allows us to simply parse the output and dynamically find out if an option is available. Neat!
2016-12-08 11:33:23 -05:00
Rene Moser
b9960c0172 composer: rename composer_install to composer_command 2016-12-08 11:33:23 -05:00
Rene Moser
61fcbe0d51 composer: simplify has_changed() 2016-12-08 11:33:23 -05:00
Greg DeKoenigsberg
c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
Roman Vyakhirev
414afb61df composer module. ignore_platform_reqs option added. 2016-12-08 11:32:47 -05:00
Brian Coca
2753cd186a moar quotes 2016-12-08 11:32:39 -05:00
Julien Pepy
97ed348e17 Clean options building in Composer module 2016-12-08 11:32:29 -05:00
Simon JAILLET
c7b3dea395 composer: Fix changed status
Fix `changed` status that always returns False with composer.

This [previous PR](https://github.com/ansible/ansible-modules-extras/pull/61) had fixed the issue but because of a [Composer recent change](cb336a5416) stderr is now used for reporting information meant for humans while stdout is more for the output of the command.

This PR would definilty solve this issue.
2016-12-08 11:32:27 -05:00
Julien Pepy
de442415a0 Fix composer module checkmode and change detection 2016-12-08 11:32:24 -05:00
Jeroen Thora
26ae02b2f5 Small typo fix 2016-12-08 11:32:22 -05:00
Michael DeHaan
7d6ceb4f06 Reorganization. 2016-12-08 11:32:19 -05:00
Renamed from lib/ansible/modules/extras/packaging/composer.py (Browse further)