Sha256: 7aae28cc16e319634afe3289ac080aca10cfc12136ff514d70c1c2553bb5050c

Contents?: true

Size: 597 Bytes

Versions: 12

Compression:

Stored size: 597 Bytes

Contents

Rule Test
  input '*.a'
  output '{$*}.b'
Action
  cat {$INPUT[1]} > {$OUTPUT[1]}
End

Rule Shell1
  input '*.a'
  input '{$*}.b'
  output '{$*}.c'
Action
  VAL1=`cat {$INPUT[1]}`;
  VAL2=`cat {$INPUT[2]}`;
  expr $VAL1 + $VAL2 > {$OUTPUT[1]}
End

Rule Shell2
  input '*.a'
  input '{$*}.b'
  output '{$*}.c'.stdout
Action
  VAL1=`cat {$INPUT[1]}`;
  VAL2=`cat {$INPUT[2]}`;
  expr $VAL1 + $VAL2
End

Rule Ruby
  input '*.a'
  input '{$*}.b'
  output '{$*}.c'.stdout
Action
  #!/usr/bin/env ruby
  val1 = File.read('{$INPUT[1]}').to_i
  val2 = File.read('{$INPUT[2]}').to_i
  puts val1 + val2
End

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pione-0.5.0 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.5.0.alpha.2 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.5.0.alpha.1 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.4.2 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.4.1 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.4.0 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.3.2 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.3.1 test/rule-engine/data/action-handler/BasicAction.pione
pione-0.3.0 test/rule-engine/spec_action-handler.pione
pione-0.2.2 test/rule-handler/spec_action-handler.pione
pione-0.2.1 test/rule-handler/spec_action-handler.pione
pione-0.2.0 test/rule-handler/spec_action-handler.pione