Skip to content
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

DSL improvements: introduce sections in step declaration #738

Open
bugzmanov opened this issue Jan 15, 2013 · 1 comment
Open

DSL improvements: introduce sections in step declaration #738

bugzmanov opened this issue Jan 15, 2013 · 1 comment

Comments

@bugzmanov
Copy link
Contributor

Background:
currently step declaration is messed up with: input values, export to context, flow specific details.
Export to context looks especially bad.

Proposal:

            provisionVms {
                phase = "provision"
                roleName = "erlangNode"
                hardwareId = "1"
                imageId = "5825"
                quantity = 2
                retryCount = 3
                exportTo = ["vms": "erlangServers"]
            }

change to

            provisionVms {
                execution: 
                   phase = "provision"
                   retryCount = 3
                input:    
                   roleName = "erlangNode"
                   hardwareId = "1"
                   imageId = "5825"
                   quantity = 2
                export:
                    vms as "erlangServers"
            }

Note: in case of step having onlu input parameters it should be possible to declare step without sections

More complex sample

@rsvato
Copy link
Contributor

rsvato commented Sep 9, 2013

Actually, these sections are just labels, so you can use it without any modification, because they are skipped by Groovy parser. Export section is a little tricker. How about:

export:
vms to $context.erlangServers

?

as changed to 'to' to not interfere with cast operation?

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

No branches or pull requests

2 participants