Skip to content

Instantly share code, notes, and snippets.

@leifwalsh
Created December 17, 2013 21:42
Show Gist options
  • Save leifwalsh/8013084 to your computer and use it in GitHub Desktop.
Save leifwalsh/8013084 to your computer and use it in GitHub Desktop.
@properties.renderer
def get_a(props):
return "Hello, %s" % props.getProperty("a")
@properties.renderer
def get_cmd(props):
return ["echo", get_a]
factory = factory.BuildFactory([shell.ShellCommand(command=get_cmd)])
@djmitche
Copy link

Try rendering it yourself:

return IRenderable(["echo", get_a]).getRenderingFor(props.build)

(untested)

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