Skip to content

Instantly share code, notes, and snippets.

@rpetre
Last active December 19, 2015 09:49
Show Gist options
  • Select an option

  • Save rpetre/5936033 to your computer and use it in GitHub Desktop.

Select an option

Save rpetre/5936033 to your computer and use it in GitHub Desktop.
body common control
{
bundlesequence => { "suicide", "glados" };
}
body agent control
{
abortclasses => { "diediedie" };
}
bundle common g
{
classes:
immunize::
"diediedie" or => { "linux" };
}
bundle agent suicide
{
classes:
"diediedie" or => { "linux" };
reports:
linux.diediedie::
"I should be dead now";
}
bundle agent glados
{
reports:
diediedie::
"GLADoS status: still alive!";
}
@rpetre
Copy link
Author

rpetre commented Jul 5, 2013

If the agent is run with -D immunize, the "diediedie" class gets defined before the action starts so it doesn't die in the suicide bundle anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment