User story #6423
closedcreating custom condition in exec command generic methods
Description
I want to have a method where I add the apt-keys for repositories I create in earlier methods
I can check for the condition with apt-key list | grep <something> where the exist status would be 0 for true (key exist) and 1 for key does not exist and the command have to be run.
would be easier to add the command and condition in the condition panel like an if else statement.
Regards,
Peter
Updated by François ARMAND almost 10 years ago
- Project changed from Rudder websites to Rudder
- Subject changed from creating custom condition in exec command methods to creating custom condition in exec command generic methods
- Category set to Web - Technique editor
- Priority changed from N/A to 2
- Target version set to 3.1.0~beta1
I completly agree - it is not intuitive at all to have to defined an other method JUST for the condition. Moreover, it brokes the readability of the goal of the technique based on the list of generic method.
Under the hood, Technique Editor can generate the logic to add by itself the needed command leading to a class, but the user don't want/need to know.
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~beta1 to 3.1.0~rc1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~rc1 to 3.1.0
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0 to 3.1.1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.1 to 3.1.2
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.2 to 3.1.3
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.3 to 3.1.4
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.4 to 3.1.5
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.5 to 3.1.6
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.6 to 3.1.7
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.7 to 3.1.8
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.8 to 3.1.9
Updated by Alexis Mousset almost 9 years ago
- Project changed from Rudder to 41
- Category deleted (
Web - Technique editor) - Target version deleted (
3.1.9)
Updated by Nicolas CHARLES about 8 years ago
- Is duplicate of User story #7234: Add a generic method for command execution with return code handling added
Updated by Nicolas CHARLES about 8 years ago
- Status changed from New to Rejected
This has been implemented in #7234
thank you Peter !
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods