diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:46:55 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:46:55 +0000 |
commit | d331c206a6e86fce8ad7a7cb099c11291dd0983f (patch) | |
tree | a99b33251c09aae19705af6c8f388369e062201e /lib | |
parent | cf37ea864a0f4e3779e132ea3e68d4159825692b (diff) | |
download | draklive-d331c206a6e86fce8ad7a7cb099c11291dd0983f.tar draklive-d331c206a6e86fce8ad7a7cb099c11291dd0983f.tar.gz draklive-d331c206a6e86fce8ad7a7cb099c11291dd0983f.tar.bz2 draklive-d331c206a6e86fce8ad7a7cb099c11291dd0983f.tar.xz draklive-d331c206a6e86fce8ad7a7cb099c11291dd0983f.zip |
move get_boot_setting as method in MDV::Draklive::Media
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Draklive/Media.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm index 27eea42..e3fa1ac 100644 --- a/lib/MDV/Draklive/Media.pm +++ b/lib/MDV/Draklive/Media.pm @@ -11,4 +11,10 @@ sub get_storage_setting { $storage{$media->{storage}}{$setting}; } +#- for actions that support an optional boot storage type +sub get_boot_setting { + my ($media, $setting, $opts) = @_; + $opts->{boot} ? $storage{$opts->{boot}}{$setting} : get_media_setting($media, $setting); +} + 1; |