upgrade files as objects
This commit is contained in:
parent
8326c63c1e
commit
4a61946399
7 changed files with 62 additions and 36 deletions
|
|
@ -6,13 +6,12 @@ use namespace::autoclean -also => qr/^_/;
|
|||
with 'WebGUI::Upgrade::File';
|
||||
|
||||
sub run {
|
||||
my $class = shift;
|
||||
my ($upgrade, $configFile, $version, $file) = @_;
|
||||
my $self = shift;
|
||||
|
||||
local $ENV{WEBGUI_CONFIG} = $configFile;
|
||||
local $ENV{WEBGUI_UPGRADE_VERSION} = $version;
|
||||
local $ENV{WEBGUI_UPGRADE_QUIET} = $upgrade->quiet;
|
||||
return _runScript($file);
|
||||
local $ENV{WEBGUI_CONFIG} = $self->configFile;
|
||||
local $ENV{WEBGUI_UPGRADE_VERSION} = $self->version;
|
||||
local $ENV{WEBGUI_UPGRADE_QUIET} = $self->quiet;
|
||||
return _runScript($self->file);
|
||||
}
|
||||
|
||||
sub _runScript {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue