Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Boldra's scratchpad

by Boldra (Deacon)
on Jun 02, 2004 at 03:27 UTC ( #359100=scratchpad: print w/replies, xml ) Need Help??

sub all_arguments { my ( $self, $machine_template ) = @_; my @all_sids = map { $_->sid } $machine_template->all_systems; return ( Class->new_from_instance( $self, sid => { maximum_size => 3, + valid_values => \@all_sids } ), Class->new_from_instance( hostname => $self ), Class->new_from_moose_meta_attribute( $self->meta->get_attribute('sid') => { maximum_size => 3, valid_values => \@all_sids } ), Class->new_from_moose_meta_attribute( $self->meta->get_attribute('hostname') ), ); } sub all_arguments_arrayref { my ( $self, $machine_template ) = @_; my @all_sids = map { $_->sid } $machine_template->all_systems; my @arguments = Cloud::SSF::PluginArgument->new_from_moose_meta_at +tribute( $self->meta->get_attribute('sid'), { maximum_length => 3, valid_values => \@all_sids, } ), Cloud::SSF::PluginArgument->new_from_moose_meta_attribute( $self->meta->get_attribute('depends_on'), { children => [ Cloud::SSF::PluginArgument->new( { name => 'sid', type => 'Str', is_required => 1, children => [], valid_value => [], ), Cloud::SSF::PluginArgument->new( { name => 'remote_lgtst', type => 'HashRef', is_required => 1, children => [ Cloud::SSF::PluginArgument->new( { name => 'port_nr', is_required => 1, type => 'Int', } ), Cloud::SSF::PluginArgument->new( { name => 'port_nr', type => 'Int', is_required => 1, } ), ], } ), ], } ); return \@arguments; }
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[holli]: exactly, moritz
[moritz]: with a big table of redirects to support the old links
[LanX]: do it
[holli]: well if you put some cleverness into the migration you can auto convert most of the links as well
[LanX]: Let's Make PerlMonks Great Again!
[holli]: but you know what? i don't think i'd fancy that. I like PM as it is.
[holli]: Alone the chatterbox and everybody writes his own cb client tradition
[LanX]: there was a guy who tried to steal the concept and build an own monastery ...
[LanX]: yeah PM is very emacsy ;-)
[LanX]: I think tobyink was on a good track with his redesign, pitty the pmdevs/gods didn't try to continue the approach of a modern responsive design

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-11-20 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (292 votes). Check out past polls.

    Notices?