On Fri, Apr 1, 2016 at 11:09 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> On Fri, Apr 1, 2016 at 10:42 AM, Craig Russell <craig.russ...@oracle.com> 
> wrote:
>
>> 4. Could this be called directly from the command line, e.g. ruby 
>> views/actions/memstat clr emeritus
>
> Directly?  No.  But it is quite possible to write a script that sets a
> few instance variables and then reads and evals the script.  The tests
> for the board agenda tool do this:
>
> https://github.com/apache/whimsy/blob/master/www/board/agenda/spec/actions_spec.rb#L40
>
> It should be possible to write proper unit tests for this function,
> given dummy test data for members.txt.  If this is of interest, I can
> set that up over the weekend, and you could add to it.

Just a heads up: I'm looking at adding support for a "dry run" of
these scripts, which likely will result in some change to the script
itself, and may need additional setup by wrapper scripts.

- Sam Ruby

Reply via email to