CloudCron

 view release on metacpan or  search on metacpan

lib/CloudCron/TargetInput.pm  view on Meta::CPAN

package CloudCron::TargetInput;
use Moose;
use JSON;

has command => (is => 'ro', isa => 'Str', required => 1);
has env     => (is => 'ro', isa => 'HashRef[Str]', required => 0, default => sub { {} });
has type    => (is => 'ro', isa => 'Str', required => 0, default => sub { 'shell' });

sub json {
    my $self = shift;
    return to_json({
        command => $self->command,
        env     => $self->env,
        type    => $self->type,
    });
}



( run in 0.594 second using v1.01-cache-2.11-cpan-5f2e87ce722 )