There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

SYNOPSIS

my $script = Monorail::MigrationScript::Writer->new(
    name    => $name,
    basedir => $self->basedir,
    diff    => $diff
);

$script->write_file;