| Class | BoxGrinder::CentOSPlugin |
| In: |
lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb
lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb |
| Parent: | RHELPlugin |
# File lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb, line 25
25: def after_init
26: super
27: register_supported_os('centos', ['5', '6'])
28: end
# File lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb, line 25
25: def after_init
26: super
27: register_supported_os('centos', ['5', '6'])
28: end
# File lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb, line 30
30: def execute(appliance_definition_file)
31: repos = {}
32:
33: @plugin_info[:versions].each do |version|
34: repos[version] = {
35: "base" => {
36: "mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=os"
37: },
38: "updates" => {
39: "mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=updates"
40: }
41: }
42: end
43:
44: build_rhel(appliance_definition_file, repos)
45: end
# File lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb, line 30
30: def execute(appliance_definition_file)
31: repos = {}
32:
33: @plugin_info[:versions].each do |version|
34: repos[version] = {
35: "base" => {
36: "mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=os"
37: },
38: "updates" => {
39: "mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=updates"
40: }
41: }
42: end
43:
44: build_rhel(appliance_definition_file, repos)
45: end