This works (was added sometime during 2.6 cycle I think).
class foo ($stage = main) {
...
}
include foo
On Dec 14, 2012 9:52 PM, "Jakov Sosic" wrote:
> Hi.
>
> I am wondering why can't run stages get set inside the class?
>
> For example:
>
> class foo {
> stage main
> }
>
> Because, if I w
Hi There,
I do a similar thing with my environment, I apply a class called "applysoe"
to all nodes that is responsible for applying my modules and classes to
nodes in a specific order as the ENC i use didn't initially support it.
Have you looked at the foreman ?
The imminent release of 1.1 suppo
On 12/14/2012 09:52 PM, Jakov Sosic wrote:
> Hi.
>
> I am wondering why can't run stages get set inside the class?
>
> For example:
>
> class foo {
> stage main
> }
>
> Because, if I want to use stages, I have to declare my class as
> parametrized => so I can't use include or require anywhere
Hi.
I am wondering why can't run stages get set inside the class?
For example:
class foo {
stage main
}
Because, if I want to use stages, I have to declare my class as
parametrized => so I can't use include or require anywhere else...
I thought of a different approach, like:
class foo_wrapp