Sha256: 69bdd3cd5069a996dca37e5a5f3f2b4addaa47ace1d20fda9fc809bc592e0d83

Contents?: true

Size: 534 Bytes

Versions: 6

Compression:

Stored size: 534 Bytes

Contents

.@ PackageName :: "SelectRuleByParam"

Rule Main
  output 'message.txt'
  param $NAME := "A"
Flow
  case $NAME
  when "A"
    $RULE := A
  when "B"
    $RULE := B
  when "C"
    $RULE := C
  end
  rule RuleSelector {R: $RULE}
End

Rule RuleSelector
  output 'message.txt'
  param $R
Flow
  rule $R
End

Rule A
  output 'message.txt'
Action
  echo "This is rule A." > {$O[1]}
End

Rule B
  output 'message.txt'
Action
  echo "This is rule B." > {$O[1]}
End

Rule C
  output 'message.txt'
Action
  echo "This is rule C." > {$O[1]}
End

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pione-0.5.0.alpha.2 example/SelectRuleByParam/SelectRuleByParam.pione
pione-0.5.0.alpha.1 example/SelectRuleByParam/SelectRuleByParam.pione
pione-0.4.2 example/SelectRuleByParam/SelectRuleByParam.pione
pione-0.4.1 example/SelectRuleByParam/SelectRuleByParam.pione
pione-0.4.0 example/SelectRuleByParam/SelectRuleByParam.pione
pione-0.3.2 example/SelectRuleByParam/SelectRuleByParam.pione