-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #11602: Add a method to compute and format output #643
Fixes #11602: Add a method to compute and format output #643
Conversation
Commit modified |
4711beb
to
02a35eb
Compare
# ``` | ||
# variable_string("prefix", "var", "10"); | ||
# variable_string_from_expression("prefix", "sum", "2.0+3.0", "%d"); | ||
# variable_string_from_expression("prefix", "product", "3*${prefix.var}", "%d"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use more example / documentation from cfengine
# @class_prefix variable_string_from_expression | ||
# @class_parameter variable_name | ||
|
||
bundle agent variable_string_from_expression(variable_prefix, variable_name, expression, format) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer variable_string_from_math_expression
Commit modified |
02a35eb
to
b11bc0d
Compare
Commit modified |
b11bc0d
to
6b56f66
Compare
@@ -0,0 +1,54 @@ | |||
####################################################### | |||
# | |||
# Read a file into a string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment is invalid
Commit modified |
6b56f66
to
8c21bda
Compare
Commit modified |
8c21bda
to
ed680b4
Compare
Commit modified |
ed680b4
to
420448d
Compare
OK, merging this PR |
https://www.rudder-project.org/redmine/issues/11602