Skip to content

Instantly share code, notes, and snippets.

@mvidner
Created May 27, 2013 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvidner/5656666 to your computer and use it in GitHub Desktop.
Save mvidner/5656666 to your computer and use it in GitHub Desktop.
// https://github.com/yast/yast-ruby-bindings/issues/23
// Y2DEBUG=1 /usr/lib/YaST2/bin/y2base -l - ~/snippets/dummy-location.ycp UI |& grep SECRET
{
term dummy_data = `DataMap($[], $[], $[], "DEFAULT");
// YCP:
// [agent-dummy] snippets/dummy-location.ycp:8 LOGTHIS_SECRET_314 Read .target.bash "ls" "DEFAULT"
// RB:
// [agent-dummy] :0 LOGTHIS_SECRET_314 Read .target.bash "ls" "DEFAULT"
SCR::RegisterAgent (.dummy, `ag_dummy(dummy_data));
any a = SCR::Read (.dummy.target.bash, "ls");
y2milestone ("%1", a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment