Skip to content

Instantly share code, notes, and snippets.

@trlinkin
Created July 8, 2013 19:08
Show Gist options
  • Select an option

  • Save trlinkin/5951571 to your computer and use it in GitHub Desktop.

Select an option

Save trlinkin/5951571 to your computer and use it in GitHub Desktop.
"late-esque" binding for PEBuild filename option default...
def filename
if @filename == UNSET_VALUE
return "puppet-enterprise-#{version}-#{suffix}.tar.gz"
end
@filename
end
@trlinkin
Copy link
Copy Markdown
Author

trlinkin commented Jul 8, 2013

@adrienthebo

Would something like this work for accessing the variable default as opposed to what you had before?

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