summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
...
* Reconsider plugin (class/symbol) to module organizationJan Pokorný2014-09-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a preparation work for being able to pick up plugin of choice nicely without the necessity of scanning the whole name/path space followed with some initialization routines across all plugins even if they won't be used for sure. Such heavy-weight approach is fine for using clufter as CLI tool (covering potentially any available use-case), not so much for the use as a library with presumably a priori determined task to perform. As generally one module can (and often is practical!) contain several modules, we are introducing following convention to allow our proposed filtering to have a good false-positives/convenience ratio: module shall contain only plugins the name of which contains the same prefix as the module's filename does, where the prefix is assumed the part before first occurrence of '_' ('-' for stringified/decorated plugin names) As a concrete example, formats/ccs.py module contains ccs and ccs_flat plugins, hence when ccs_flat is to be picked with this fine granularity and using default search path, only formats/ccs.py file will match the prefix test and hence only ccs and ccs_flat will be prepared for further use (one false positive in this case is a result of the mentioned trade-off). This commit normalizes the plugin-module allocation to follow the convention, reflects these changes in tests, etc. and adds a note to the HACKING doc file. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: fix another unneeded indirectionJan Pokorný2014-09-011-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: make usable as a library (output as a string, etc.)Jan Pokorný2014-09-013-19/+19
| | | | | | New unit test included. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* plugin_registry/commands: implement+use RO view on pluginsJan Pokorný2014-08-293-7/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands: reflect symbolic usage of protocolsJan Pokorný2014-08-293-10/+17
| | | | | | (for the time being, test suite left at using direct strings) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: add behavior of deferring to _common as already doc'dJan Pokorný2014-06-161-16/+7
| | | | | | (in doc/HACKING in the previous commit) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs_flatiron: drop generating (static) corosync.confJan Pokorný2014-05-261-9/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Introduce an explicit notion about target system+distroJan Pokorný2014-05-221-1/+1
| | | | | | | ...which is, in an unified way, used for both deciding alias targets and for decisions within commands/filters. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: ccs-revitalize <- simplify cornercases down the lineJan Pokorný2014-04-291-6/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_revitalize: new single filter commandJan Pokorný2014-04-251-0/+24
| | | | | | | | | Currently @domain -> @port for fence_xvm FA: idea is to simplify processing in downstream filters which would otherwise have to be encumbered with the additional complexity, not distant from the one of this new filter. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Relicence GPLv2 -> GPLv2+Jan Pokorný2014-04-252-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: add ability to NOOPize selected filter(s)Jan Pokorný2014-04-161-3/+6
| | | | | | This systemic approach also applied to --skip for ccs_obfuscate command. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* s/ccsflat/flatccs/ (consistency with "simplepcs")Jan Pokorný2014-04-151-4/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/pcs2simplepcs: new simplification pass (so far: fencing)Jan Pokorný2014-04-151-4/+10
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* xml-based filters: "raw" flag: avoid designated prettyprintingJan Pokorný2014-04-031-6/+10
| | | | | | ...which is the case of ccs2ccs_pcmk Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands: adjust formatting of `deco` argumentsJan Pokorný2014-04-012-8/+8
| | | | | | (for more symmetry, use non-tuple/single-item parentheses) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Refactor "magic @DITIT+ files: allow repeated usage"Jan Pokorný2014-04-011-16/+13
| | | | | | Now, it is used implicitly for any 'file'-like IO declaration. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* re magic @DITIT+ files: allow repeated usageJan Pokorný2014-03-281-13/+16
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_obfuscate: be more explicit about the expectationsJan Pokorný2014-03-271-0/+11
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_obfuscate: better explanation of "skip" in CLIJan Pokorný2014-03-071-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_obfuscate: make sequential processing explicitJan Pokorný2014-03-071-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: fix accidental typoJan Pokorný2014-03-071-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_obfuscate: shorter description to avoid line-splitJan Pokorný2014-03-071-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs2pcs command related style groomingJan Pokorný2014-03-071-18/+20
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_obfuscate: use ccs_obfuscate_{credentials,identifiers}Jan Pokorný2014-03-071-0/+38
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: make order of filters respect outputs (flatiron)Jan Pokorný2014-03-071-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: better description of ccs_pcmk for ccs2pcs_flatironJan Pokorný2014-03-071-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: teach ccs2pcs alias logic about centosJan Pokorný2014-03-071-6/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: [ccs]flatiron[xml] -> pcmk + reformatJan Pokorný2014-03-071-12/+26
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs2pcs: migrate to cmd alias mechanism, incl. testsuiteJan Pokorný2014-03-061-13/+60
| | | | | | | Note: currently ccs2flatironxml is effectively a copy of ccs2needlexml, but this is both incorrect and subject of future change Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs2pcs now indeed produces corosync.conf (via XML2simpleconfig)Jan Pokorný2014-02-181-5/+2
| | | | | | | | | which required finalizing some missing functionality: - XML's 'etree' -> simpleconfig's 'struct' (filters/XML2simpleconfig) - simpleconfig's 'struct' produced/pretty-printed as 'bytestring' (formats/simpleconfig) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands:ccs2pcs: invert opt. 'validate'->'nocheck' (def.:yes->no)Jan Pokorný2014-02-131-4/+4
| | | | | | due to previous think as boolean opts. cannot be passed specifying value Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands:ccs2pcs: be closer/declare expectationsJan Pokorný2014-02-131-3/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command (+ccs2pcs): finish basic framework integrationJan Pokorný2014-01-201-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs2pcs: fix a typoJan Pokorný2014-01-161-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Batch header unificationJan Pokorný2013-11-181-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Initial commitJan Pokorný2013-11-182-0/+20
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>