From b943b09340c3e3c59f83823946ceeb3e453b3e52 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 26 May 2008 19:22:00 +0000 Subject: * reworked plugin-API concerning the way the parameters are passed into installationPhase() and removalPhase() - now we use a hash as the amount of parameters has become too large * adjusted all plugins to these API change * now not only the openslx base path, but the openslx config path is bind mounted into the vendor-OS chroot, such that plugins can check the available local configuration extensions git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1803 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/vmware/OpenSLX/OSPlugin/vmware.pm | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm') diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm index 16dfe520..e04aed0b 100644 --- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm +++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm @@ -171,12 +171,14 @@ sub getAttrInfo sub installationPhase { - my $self = shift; - - $self->{pluginRepositoryPath} = shift; - $self->{pluginTempPath} = shift; - $self->{openslxPath} = shift; - $self->{attrs} = shift; + my $self = shift; + my $info = shift; + + $self->{pluginRepositoryPath} = $info->{'plugin-repo-path'}; + $self->{pluginTempPath} = $info->{'plugin-temp-path'}; + $self->{openslxBasePath} = $info->{'openslx-base-path'}; + $self->{openslxConfigPath} = $info->{'openslx-config-path'}; + $self->{attrs} = $info->{'plugin-attrs'}; # kinds we will configure and install @@ -194,11 +196,9 @@ sub installationPhase sub removalPhase { - my $self = shift; - my $pluginRepositoryPath = shift; - my $pluginTempPath = shift; - - rmtree ( [ $pluginRepositoryPath ] ); + my $self = shift; + my $info = shift; + # restore old start scripts - to be discussed my @files = qw( vmware vmplayer ); foreach my $file (@files) { @@ -314,7 +314,7 @@ sub _localInstallation my $vmbuildversion = ""; my $pluginFilesPath - = "$self->{'openslxPath'}/lib/plugins/$self->{'name'}/files"; + = "$self->{'openslxBasePath'}/lib/plugins/$self->{'name'}/files"; my $installationPath = "$self->{'pluginRepositoryPath'}/$kind"; mkpath($installationPath); @@ -410,7 +410,7 @@ sub _vmpl2Installation { my $vmbuildversion = "TODO_we_need_it_for_enhanced_runvmware_config_in_stage1"; my $pluginFilesPath - = "$self->{'openslxPath'}/lib/plugins/$self->{'name'}/files"; + = "$self->{'openslxBasePath'}/lib/plugins/$self->{'name'}/files"; my $installationPath = "$self->{'pluginRepositoryPath'}/$kind"; mkpath($installationPath); -- cgit v1.2.3-55-g7522