@@ -47,9 +47,9 @@ protected void runInstance(EventContainer<JRubyScriptContext> ctx, Executor e, @
4747 @ Override
4848 protected void exec (EventContainer <JRubyScriptContext > ctx , ScriptTrigger macro , BaseEvent event ) throws Exception {
4949 runInstance (ctx , instance -> {
50- instance .put ("event" , event );
51- instance .put ("file" , ctx .getCtx ().getFile ());
52- instance .put ("context" , ctx );
50+ instance .put ("$ event" , event );
51+ instance .put ("$ file" , ctx .getCtx ().getFile ());
52+ instance .put ("$ context" , ctx );
5353
5454 instance .runScriptlet (new FileReader (ctx .getCtx ().getFile ()), ctx .getCtx ().getFile ().getAbsolutePath ());
5555 }, ctx .getCtx ().getFile ().getParentFile ().toPath ());
@@ -59,9 +59,9 @@ protected void exec(EventContainer<JRubyScriptContext> ctx, ScriptTrigger macro,
5959 @ Override
6060 protected void exec (EventContainer <JRubyScriptContext > ctx , String lang , String script , BaseEvent event ) throws Exception {
6161 runInstance (ctx , instance -> {
62- instance .put ("event" , event );
63- instance .put ("file" , ctx .getCtx ().getFile ());
64- instance .put ("context" , ctx );
62+ instance .put ("$ event" , event );
63+ instance .put ("$ file" , ctx .getCtx ().getFile ());
64+ instance .put ("$ context" , ctx );
6565
6666 if (ctx .getCtx ().getFile () != null ) {
6767 instance .runScriptlet (new StringReader (script ), ctx .getCtx ().getFile ().getAbsolutePath ());
0 commit comments