Jira (PUP-9255) PAL - add the ability to evaluate logic in a nested local scope

5 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Oct 19, 2018, 10:26:02 AM10/19/18
to puppe...@googlegroups.com
Henrik Lindberg created an issue
 
Puppet / New Feature PUP-9255
PAL - add the ability to evaluate logic in a nested local scope
Issue Type: New Feature New Feature
Assignee: Henrik Lindberg
Created: 2018/10/19 7:25 AM
Priority: Normal Normal
Reporter: Henrik Lindberg

For several use cases it is important to be able to evaluate snippets of code such that they set variables in a local (temporary) inner scope as opposed to setting them in top scope.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Maggie Dreyer (JIRA)

unread,
Nov 1, 2018, 6:40:04 PM11/1/18
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Nov 30, 2018, 9:18:03 AM11/30/18
to puppe...@googlegroups.com
Henrik Lindberg commented on New Feature PUP-9255
 
Re: PAL - add the ability to evaluate logic in a nested local scope

This work was done as part of PUP-9254 - the PR has one commit for this ticket.

Henrik Lindberg (JIRA)

unread,
Nov 30, 2018, 9:19:02 AM11/30/18
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Nov 30, 2018, 9:19:02 AM11/30/18
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Nov 30, 2018, 9:19:02 AM11/30/18
to puppe...@googlegroups.com
Henrik Lindberg assigned an issue to Unassigned
Change By: Henrik Lindberg
Assignee: Henrik Lindberg

Josh Cooper (JIRA)

unread,
Dec 3, 2018, 1:47:03 PM12/3/18
to puppe...@googlegroups.com

Kenn Hussey (JIRA)

unread,
Dec 10, 2018, 10:28:04 AM12/10/18
to puppe...@googlegroups.com

Jean Bond (JIRA)

unread,
Dec 10, 2018, 7:24:02 PM12/10/18
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Dec 11, 2018, 1:15:04 PM12/11/18
to puppe...@googlegroups.com

This is all Ruby API, a user would need to read the documentation in the source for the PAL classes.
Here is an example where it is used - inside the eval function: https://github.com/puppetlabs/puppet/blob/d0b3a7fb1e4f531747b31f439df308b30534a65a/lib/puppet/functions/eval.rb#L45

I blogged about PAL (https://puppet-on-the-edge.blogspot.com/2018/10/puppet-pal-wants-to-be-your-friend.html) , and will add the in_local_scope thing to it when the PR is merged. There is no hurry to document PAL since I think there are quite a number of things to add to it to make it feature complete - for now it serves its purpose (mainly) for Bolt and as an API we use internally.

Kenn Hussey (JIRA)

unread,
Dec 12, 2018, 2:19:04 PM12/12/18
to puppe...@googlegroups.com
Kenn Hussey updated an issue
Change By: Kenn Hussey
Fix Version/s: PUP 6.1.0
Fix Version/s: PUP 6.y

Jean Bond (JIRA)

unread,
Dec 12, 2018, 3:28:04 PM12/12/18
to puppe...@googlegroups.com

Kenn Hussey (JIRA)

unread,
Dec 12, 2018, 4:06:04 PM12/12/18
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 12, 2020, 4:47:04 PM6/12/20
to puppe...@googlegroups.com
Josh Cooper commented on New Feature PUP-9255
 
Re: PAL - add the ability to evaluate logic in a nested local scope

The eval PR was declined, resetting this ticket status.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 11, 2021, 8:20:02 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper commented on New Feature PUP-9255

We don't have plans on adding this anytime soon, so I'm going to close this. Please reopen if it is still needed.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 11, 2021, 8:23:01 PM6/11/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages