class BoxGrinder::CentOSPlugin

Public Instance Methods

after_init() click to toggle source
Calls superclass method
# File lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb, line 25
def after_init
  super
  register_supported_os('centos', ['5', '6'])
end
execute(appliance_definition_file) click to toggle source
# File lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb, line 30
def execute(appliance_definition_file)
  repos = {}

  @plugin_info[:versions].each do |version|
    repos[version] = {
      "base" => {
          "mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=os"
      },
      "updates" => {
          "mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=updates"
      }
    }
  end

  build_rhel(appliance_definition_file, repos)
end