jmettraux/ruote

_if comparisons of fields with a : in the value fail

lbt opened this issue · 1 comments

lbt commented

actual use:

Ruote.process_definition :name => 'try_equality' do
set 'project' => 'home:lbt:zDE:Trunk'
set 'final_project' => 'home:lbt:zDE:Trunk'
_if '${final_project} == ${project}' do
echo "Equal '${final_project} == ${project}'"
echo "Not Equal '${final_project} == ${project}'"
end
end

=>
Not Equal 'home:lbt:zDE:Trunk == home:lbt:zDE:Trunk'

actually: _if '${project} == ${project}' fails

Hello David,

as said over IRC the other day, please use

"${'x} == ${'y}" or "'${x}' == '${y}'"

see https://github.com/jmettraux/ruote/blob/360654829d15f84c5e1f1d30ffbbc017564230e5/test/functional/ft_10_dollar.rb#L195-206

Best regards.