New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#7762) In DSL allow UNLESS as replacement for IF NOT #424

Merged
merged 1 commit into from Feb 2, 2012

Conversation

Projects
None yet
2 participants
@jeffweiss
Contributor

jeffweiss commented Jan 29, 2012

Add support to DSL for UNLESS.
Add support for two cases of UNLESS:
unless { }
unless { }

Proxy UNLESS in AST to IF, wrapping condition an (additional) NOT

Add tests to ensure that AST::Not gets added tree in "unless false {
$var = 1 }"
Add tests to ensure that no exception raised for "unless false { }"

(#7762) In DSL allow UNLESS as replacement for IF NOT
Add support to DSL for UNLESS.
Add support for two cases of UNLESS:
  unless <condition> { <statements> }
  unless <condition> { }

Proxy UNLESS in AST to IF, wrapping condition an (additional) NOT

Add tests to ensure that AST::Not gets added tree in "unless false {
$var = 1 }"
Add tests to ensure that no exception raised for "unless false { }"

slippycheeze added a commit that referenced this pull request Feb 2, 2012

Merge pull request #424 from jeffweiss/ticket/master/7792_allow_unles…
…s_as_replacement_for_if_not

(#7762) In DSL allow UNLESS as replacement for IF NOT

@slippycheeze slippycheeze merged commit fb36b5a into puppetlabs:master Feb 2, 2012

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