Closed ismith closed 10 years ago
Plausibly this could be improved by having code somewhere (ala configurator) so that you could call set_initial_status 'INACTIVE'
and have it turn that into TopologyInitialStatus.valueOf('INACTIVE'), and error if the given string isn't one of ['INACTIVE', 'ACTIVE']. And there might be other SubmitOptions that could use some DSL love along those lines.
But I think that's lower priority than exposing SubmitOptions at all in the DSL.
(Re: coveralls ... this commit currently lacks tests. I'll add something later once I get feedback that this is change approximately the right thing to do here.)
Yup, this makes sense. It's just a bummer that the whole SubmitOptions
class exists for only one option. Your proposal will make this future proof if new options are added, otherwise we could have just added a special case for initial_status
in the configuration block for example.
Closing; moved this patch to a fresh repo/branch, reopened as #104
This PR will expose SubmitOptions to the DSL in a block similar to the configure block. For example: