Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Write your own "Build deploy" action?

    # Build.PL
    use strict;
    use Module::Build;

    my $class = Module::Build->subclass(
        class => "Module::Build::jonasbn",
        code => <<'SUBCLASS', );

        sub ACTION_deploy {
            my $self = shift;
            $self->depends_on('dist'); # create tarball
            # add code here to scp
        }

    SUBCLASS

    $class->new( %normal_mb_args )->create_build_script;

    • I have done several subclasses of Module::Build and I actually already have one for this client, so I could just extend it.

      Thanks for the feedback,

      jonasbn