lib/boxgrinder-ubuntu-plugin.rb in boxgrinder-ubuntu-plugin-0.2.2 vs lib/boxgrinder-ubuntu-plugin.rb in boxgrinder-ubuntu-plugin-0.2.3

- old
+ new

@@ -2,10 +2,12 @@ require 'boxgrinder-build/plugins/base-plugin' require 'boxgrinder-core/errors' module BoxGrinder class UbuntuPlugin < BasePlugin + plugin :type => :os, :name => :ubuntu, :full_name => "Ubuntu", :versions => ["lucid", "maveric", "natty", "oneiric", "precise"] + def after_init register_deliverable( :disk => "#{@appliance_config.name}-sda.qcow2" ) register_supported_os('ubuntu', ["lucid", "maveric", "natty", "oneiric"]) @@ -116,8 +118,5 @@ end end end end - -plugin :class => BoxGrinder::UbuntuPlugin, :type => :os, :name => :ubuntu, :full_name => "Ubuntu", :versions => ["lucid", "maveric", "natty", "oneiric"] -