boxgrinder-build 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +21 -0
- data/Manifest +92 -0
- data/Rakefile +9 -0
- data/boxgrinder-build.gemspec +4 -4
- data/integ/appliances/_hardware_cpus.appl +13 -0
- data/integ/appliances/_hardware_memory.appl +13 -0
- data/integ/appliances/_hardware_partitions_home.appl +15 -0
- data/integ/appliances/_hardware_partitions_root.appl +15 -0
- data/integ/appliances/_os_password.appl +15 -0
- data/integ/appliances/_packages_groups_base.appl +13 -0
- data/integ/appliances/_packages_groups_core.appl +13 -0
- data/integ/appliances/_packages_squid.appl +13 -0
- data/integ/appliances/_packages_utils.appl +7 -0
- data/integ/appliances/_repos_boxgrinder_permanent_noarch.appl +14 -0
- data/integ/appliances/_repos_testlocal_ephemeral_noarch.appl +17 -0
- data/integ/appliances/_test_base.appl +22 -0
- data/integ/appliances/gnome-fedora.appl +19 -0
- data/integ/appliances/jeos-centos.appl +4 -0
- data/integ/appliances/jeos-fedora.appl +5 -0
- data/integ/appliances/modular.appl +16 -0
- data/integ/packages/ephemeral-repo-test-0.1-1.noarch.rpm +0 -0
- data/integ/packages/local-repo-test.spec +20 -0
- data/integ/spec/jeos-spec.rb +69 -0
- data/integ/spec/modular-spec.rb +71 -0
- data/lib/boxgrinder-build/appliance.rb +48 -48
- data/lib/boxgrinder-build/helpers/guestfs-helper.rb +11 -8
- data/lib/boxgrinder-build/helpers/plugin-helper.rb +1 -0
- data/lib/boxgrinder-build/helpers/qemu.wrapper +1 -1
- data/lib/boxgrinder-build/plugins/base-plugin.rb +55 -14
- data/lib/boxgrinder-build/plugins/delivery/ebs/ebs-plugin.rb +270 -54
- data/lib/boxgrinder-build/plugins/delivery/elastichosts/elastichosts-plugin.rb +3 -4
- data/lib/boxgrinder-build/plugins/delivery/local/local-plugin.rb +20 -16
- data/lib/boxgrinder-build/plugins/delivery/s3/s3-plugin.rb +57 -20
- data/lib/boxgrinder-build/plugins/delivery/sftp/sftp-plugin.rb +6 -4
- data/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb +2 -1
- data/lib/boxgrinder-build/plugins/os/rpm-based/kickstart.rb +2 -32
- data/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb +29 -4
- data/lib/boxgrinder-build/plugins/os/rpm-based/rpm-dependency-validator.rb +15 -46
- data/lib/boxgrinder-build/plugins/os/sl/sl-plugin.rb +56 -0
- data/lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb +1 -0
- data/lib/boxgrinder-build/plugins/platform/ec2/src/rc_local +15 -8
- data/lib/boxgrinder-build/plugins/platform/vmware/vmware-plugin.rb +8 -6
- data/rubygem-boxgrinder-build.spec +23 -3
- data/spec/appliance-spec.rb +114 -73
- data/spec/helpers/guestfs-helper-spec.rb +12 -3
- data/spec/plugins/base-plugin-spec.rb +24 -18
- data/spec/plugins/delivery/ebs/ebs-plugin-spec.rb +206 -67
- data/spec/plugins/delivery/elastichosts/elastichosts-plugin-spec.rb +228 -225
- data/spec/plugins/delivery/local/local-plugin-spec.rb +13 -34
- data/spec/plugins/delivery/s3/s3-plugin-spec.rb +107 -50
- data/spec/plugins/os/centos/centos-plugin-spec.rb +1 -1
- data/spec/plugins/os/fedora/fedora-plugin-spec.rb +14 -8
- data/spec/plugins/os/rhel/rhel-plugin-spec.rb +1 -1
- data/spec/plugins/os/rpm-based/kickstart-spec.rb +0 -44
- data/spec/plugins/os/rpm-based/rpm-based-os-plugin-spec.rb +31 -2
- data/spec/plugins/os/rpm-based/rpm-dependency-validator-spec.rb +20 -7
- data/spec/plugins/os/sl/sl-plugin-spec.rb +44 -0
- data/spec/plugins/platform/ec2/ec2-plugin-spec.rb +1 -1
- data/spec/plugins/platform/virtualbox/virtualbox-plugin-spec.rb +6 -6
- data/spec/plugins/platform/vmware/vmware-plugin-spec.rb +14 -13
- metadata +27 -5
- data/spec/Rakefile +0 -32
@@ -43,7 +43,7 @@ module BoxGrinder
|
|
43
43
|
|
44
44
|
@plugin.stub!(:merge_plugin_config)
|
45
45
|
|
46
|
-
@plugin.init(@config, @appliance_config, :log => LogHelper.new(:level => :trace, :type => :stdout)
|
46
|
+
@plugin.init(@config, @appliance_config, {:name => :rpm_based}, :log => LogHelper.new(:level => :trace, :type => :stdout))
|
47
47
|
|
48
48
|
@config = @plugin.instance_variable_get(:@config)
|
49
49
|
@appliance_config = @plugin.instance_variable_get(:@appliance_config)
|
@@ -203,7 +203,7 @@ module BoxGrinder
|
|
203
203
|
validator = mock(RPMDependencyValidator)
|
204
204
|
validator.should_receive(:resolve_packages)
|
205
205
|
|
206
|
-
Kickstart.should_receive(:new).with(@config, @appliance_config, {
|
206
|
+
Kickstart.should_receive(:new).with(@config, @appliance_config, {:tmp=>"build/path/rpm_based-plugin/tmp", :base=>"build/path/rpm_based-plugin"}, :log => @log).and_return(kickstart)
|
207
207
|
RPMDependencyValidator.should_receive(:new).and_return(validator)
|
208
208
|
|
209
209
|
@exec_helper.should_receive(:execute).with("appliance-creator -d -v -t 'build/path/rpm_based-plugin/tmp' --cache=cachedir/rpms-cache/mainpath --config 'kickstart.ks' -o 'build/path/rpm_based-plugin/tmp' --name 'full' --vmem 512 --vcpu 1 --format raw")
|
@@ -233,12 +233,16 @@ module BoxGrinder
|
|
233
233
|
|
234
234
|
it "should build appliance" do
|
235
235
|
@appliance_config.stub!(:os).and_return(OpenCascade.new({:name => 'fedora', :version => '14'}))
|
236
|
+
@appliance_config.should_receive(:default_repos).and_return(true)
|
237
|
+
@plugin.should_receive(:add_repos).with({})
|
236
238
|
do_build
|
237
239
|
@plugin.build_with_appliance_creator('jeos.appl')
|
238
240
|
end
|
239
241
|
|
240
242
|
it "should execute additional steps for Fedora 15" do
|
241
243
|
@appliance_config.stub!(:os).and_return(OpenCascade.new({:name => 'fedora', :version => '15'}))
|
244
|
+
@appliance_config.should_receive(:default_repos).and_return(true)
|
245
|
+
@plugin.should_receive(:add_repos).with({})
|
242
246
|
|
243
247
|
do_build do |guestfs, guestfs_helper|
|
244
248
|
@plugin.should_receive(:disable_biosdevname).with(guestfs)
|
@@ -252,6 +256,31 @@ module BoxGrinder
|
|
252
256
|
end
|
253
257
|
end
|
254
258
|
|
259
|
+
describe ".add_repos" do
|
260
|
+
it "should add specified repos to appliance" do
|
261
|
+
repos = []
|
262
|
+
|
263
|
+
@appliance_config.stub!(:variables).and_return({'OS_VERSION' => '11', 'BASE_ARCH' => 'i386'})
|
264
|
+
@appliance_config.stub!(:repos).and_return(repos)
|
265
|
+
|
266
|
+
@plugin.add_repos({
|
267
|
+
"11" => {
|
268
|
+
"base" => {
|
269
|
+
"mirrorlist" => "http://mirrorlist.centos.org/?release=#OS_VERSION#&arch=#BASE_ARCH#&repo=os"
|
270
|
+
}
|
271
|
+
}
|
272
|
+
})
|
273
|
+
|
274
|
+
repos.size.should == 1
|
275
|
+
repos.first['mirrorlist'].should == 'http://mirrorlist.centos.org/?release=11&arch=i386&repo=os'
|
276
|
+
|
277
|
+
end
|
278
|
+
|
279
|
+
it "should not fail with empty repos" do
|
280
|
+
@plugin.add_repos({})
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
255
284
|
describe ".execute_appliance_creator" do
|
256
285
|
it "should execute appliance creator successfuly" do
|
257
286
|
@exec_helper.should_receive(:execute).with("appliance-creator -d -v -t 'build/path/rpm_based-plugin/tmp' --cache=cachedir/rpms-cache/mainpath --config 'kickstart.ks' -o 'build/path/rpm_based-plugin/tmp' --name 'full' --vmem 512 --vcpu 1 --format raw")
|
@@ -33,18 +33,31 @@ module BoxGrinder
|
|
33
33
|
@appliance_config.stub!(:name).and_return('full')
|
34
34
|
@appliance_config.stub!(:version).and_return(1)
|
35
35
|
@appliance_config.stub!(:release).and_return(0)
|
36
|
+
@appliance_config.stub!(:hardware).and_return(OpenCascade.new(:arch => 'i386'))
|
36
37
|
@appliance_config.stub!(:os).and_return(OpenCascade.new({:name => 'fedora', :version => '11'}))
|
37
38
|
|
38
|
-
@
|
39
|
+
@validator = RPMDependencyValidator.new(@config, @appliance_config, OpenCascade.new(:tmp => 'tmp'))
|
40
|
+
end
|
41
|
+
|
42
|
+
describe ".generate_yum_config" do
|
43
|
+
it "should create a yum config also with an url with tilde character" do
|
44
|
+
Dir.should_receive(:pwd).and_return('/dir')
|
45
|
+
|
46
|
+
@appliance_config.stub!(:version).and_return(1)
|
47
|
+
@appliance_config.stub!(:repos).and_return([{'name' => 'name', 'mirrorlist' => 'mirror~list'}])
|
39
48
|
|
40
|
-
|
49
|
+
file = mock(File)
|
50
|
+
file.should_receive(:puts).with("[main]\r\ncachedir=/dir/tmp/boxgrinder-i386-yum-cache/\r\n\r\n")
|
51
|
+
file.should_receive(:puts).with("[boxgrinder-name]")
|
52
|
+
file.should_receive(:puts).with("name=name")
|
53
|
+
file.should_receive(:puts).with("mirrorlist=mirror~list")
|
54
|
+
file.should_receive(:puts).with("enabled=1")
|
55
|
+
file.should_receive(:puts)
|
41
56
|
|
42
|
-
|
57
|
+
File.should_receive(:open).with("tmp/yum.conf", "w").and_yield(file)
|
43
58
|
|
44
|
-
|
45
|
-
|
46
|
-
@exec_helper = @plugin.instance_variable_get(:@exec_helper)
|
47
|
-
@log = @plugin.instance_variable_get(:@log)
|
59
|
+
@validator.generate_yum_config
|
60
|
+
end
|
48
61
|
end
|
49
62
|
end
|
50
63
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2010 Red Hat, Inc.
|
3
|
+
#
|
4
|
+
# This is free software; you can redistribute it and/or modify it
|
5
|
+
# under the terms of the GNU Lesser General Public License as
|
6
|
+
# published by the Free Software Foundation; either version 3 of
|
7
|
+
# the License, or (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This software is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
# Lesser General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU Lesser General Public
|
15
|
+
# License along with this software; if not, write to the Free
|
16
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
17
|
+
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
18
|
+
|
19
|
+
require 'boxgrinder-build/plugins/os/sl/sl-plugin'
|
20
|
+
require 'hashery/opencascade'
|
21
|
+
|
22
|
+
module BoxGrinder
|
23
|
+
describe ScientificLinuxPlugin do
|
24
|
+
before(:each) do
|
25
|
+
@config = Config.new
|
26
|
+
@appliance_config = mock(ApplianceConfig,
|
27
|
+
:name => 'name',
|
28
|
+
:path => OpenCascade.new({:build => 'build/path'})
|
29
|
+
)
|
30
|
+
|
31
|
+
@plugin = ScientificLinuxPlugin.new.init(@config, @appliance_config, {:class => BoxGrinder::ScientificLinuxPlugin, :type => :os, :name => :sl, :full_name => "Scientific Linux", :versions => ["5", "6"]}, :log => LogHelper.new(:level => :trace, :type => :stdout))
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
describe ".execute" do
|
36
|
+
it "should use rhel plugin to build the appliance" do
|
37
|
+
@plugin.should_receive(:build_rhel).with('definition', {"6"=>{"security"=>{"baseurl"=>"http://ftp.scientificlinux.org/linux/scientific/#OS_VERSION#x/#BASE_ARCH#/updates/security/"}, "base"=>{"baseurl"=>"http://ftp.scientificlinux.org/linux/scientific/#OS_VERSION#x/#BASE_ARCH#/os/"}}, "5"=>{"security"=>{"baseurl"=>"http://ftp.scientificlinux.org/linux/scientific/#OS_VERSION#x/#BASE_ARCH#/updates/security/"}, "base"=>{"baseurl"=>"http://ftp.scientificlinux.org/linux/scientific/#OS_VERSION#x/#BASE_ARCH#/SL/"}}})
|
38
|
+
|
39
|
+
@plugin.execute('definition')
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
@@ -55,7 +55,7 @@ module BoxGrinder
|
|
55
55
|
})
|
56
56
|
)
|
57
57
|
|
58
|
-
@plugin = EC2Plugin.new.init(@config, @appliance_config, :
|
58
|
+
@plugin = EC2Plugin.new.init(@config, @appliance_config, {:class => BoxGrinder::EC2Plugin, :type => :platform, :name => :ec2, :full_name => "Amazon Elastic Compute Cloud (Amazon EC2)"}, :previous_plugin => OpenCascade.new(:deliverables => {:disk => 'a/disk.raw'}), :log => LogHelper.new(:level => :trace, :type => :stdout))
|
59
59
|
|
60
60
|
@config = @plugin.instance_variable_get(:@config)
|
61
61
|
@appliance_config = @plugin.instance_variable_get(:@appliance_config)
|
@@ -52,11 +52,11 @@ module BoxGrinder
|
|
52
52
|
)
|
53
53
|
|
54
54
|
options[:log] = LogHelper.new(:level => :trace, :type => :stdout)
|
55
|
-
options[:
|
55
|
+
options[:previous_plugin] = OpenCascade.new(:deliverables => {:disk => 'a/base/image/path.raw'})
|
56
56
|
@plugin = VirtualBoxPlugin.new
|
57
57
|
|
58
58
|
@plugin.should_receive(:read_plugin_config)
|
59
|
-
@plugin.init(@config, @appliance_config, options)
|
59
|
+
@plugin.init(@config, @appliance_config, {:class => BoxGrinder::VirtualBoxPlugin, :type => :platform, :name => :virtualbox, :full_name => "VirtualBox"}, options)
|
60
60
|
|
61
61
|
@exec_helper = @plugin.instance_variable_get(:@exec_helper)
|
62
62
|
@image_helper = @plugin.instance_variable_get(:@image_helper)
|
@@ -64,17 +64,17 @@ module BoxGrinder
|
|
64
64
|
end
|
65
65
|
|
66
66
|
describe ".build_virtualbox" do
|
67
|
-
|
68
|
-
prepare_image
|
67
|
+
before(:each) do
|
68
|
+
prepare_image
|
69
|
+
end
|
69
70
|
|
71
|
+
it "should build virtualbox image on new qemu-img" do
|
70
72
|
@image_helper.should_receive(:convert_disk).with("a/base/image/path.raw", :vmdk, "build/path/virtualbox-plugin/tmp/full.vmdk")
|
71
73
|
|
72
74
|
@plugin.build_virtualbox
|
73
75
|
end
|
74
76
|
|
75
77
|
it "should build virtualbox image on old qemu-img" do
|
76
|
-
prepare_image(:previous_deliverables => OpenStruct.new({:disk => 'a/base/image/path.raw'}))
|
77
|
-
|
78
78
|
@image_helper.should_receive(:convert_disk).with("a/base/image/path.raw", :vmdk, "build/path/virtualbox-plugin/tmp/full.vmdk")
|
79
79
|
|
80
80
|
@plugin.build_virtualbox
|
@@ -52,20 +52,21 @@ module BoxGrinder
|
|
52
52
|
)
|
53
53
|
|
54
54
|
options[:log] = Logger.new('/dev/null')
|
55
|
-
options[:
|
55
|
+
options[:previous_plugin] = OpenCascade.new(:deliverables => {:disk => 'a/base/image/path.raw'})
|
56
56
|
@plugin = VMwarePlugin.new
|
57
57
|
|
58
58
|
@plugin.instance_variable_set(:@plugin_config, plugin_config)
|
59
59
|
@plugin.should_receive(:read_plugin_config)
|
60
60
|
@plugin.should_receive(:validate_plugin_config)
|
61
|
-
@plugin.init(@config, @appliance_config, options)
|
61
|
+
@plugin.init(@config, @appliance_config, {:class => BoxGrinder::VMwarePlugin, :type => :platform, :name => :vmware, :full_name => "VMware"}, options)
|
62
|
+
# @plugin.validate
|
62
63
|
|
63
64
|
@exec_helper = @plugin.instance_variable_get(:@exec_helper)
|
64
65
|
@image_helper = @plugin.instance_variable_get(:@image_helper)
|
65
66
|
end
|
66
67
|
|
67
68
|
it "should calculate good CHS value for 0.5GB disk" do
|
68
|
-
prepare_image({'thin_disk' => false, 'type' => 'enterprise'}
|
69
|
+
prepare_image({'thin_disk' => false, 'type' => 'enterprise'})
|
69
70
|
|
70
71
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 536870912))
|
71
72
|
|
@@ -78,7 +79,7 @@ module BoxGrinder
|
|
78
79
|
end
|
79
80
|
|
80
81
|
it "should calculate good CHS value for 1GB disk" do
|
81
|
-
prepare_image({'thin_disk' => false, 'type' => 'enterprise'}
|
82
|
+
prepare_image({'thin_disk' => false, 'type' => 'enterprise'})
|
82
83
|
|
83
84
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 1073741824))
|
84
85
|
|
@@ -91,7 +92,7 @@ module BoxGrinder
|
|
91
92
|
end
|
92
93
|
|
93
94
|
it "should calculate good CHS value for 40GB disk" do
|
94
|
-
prepare_image({'thin_disk' => false, 'type' => 'enterprise'}
|
95
|
+
prepare_image({'thin_disk' => false, 'type' => 'enterprise'})
|
95
96
|
|
96
97
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 42949672960))
|
97
98
|
|
@@ -104,7 +105,7 @@ module BoxGrinder
|
|
104
105
|
end
|
105
106
|
|
106
107
|
it "should calculate good CHS value for 160GB disk" do
|
107
|
-
prepare_image({'thin_disk' => false, 'type' => 'enterprise'}
|
108
|
+
prepare_image({'thin_disk' => false, 'type' => 'enterprise'})
|
108
109
|
|
109
110
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 171798691840))
|
110
111
|
|
@@ -118,7 +119,7 @@ module BoxGrinder
|
|
118
119
|
|
119
120
|
describe ".change_vmdk_values" do
|
120
121
|
it "should change vmdk data (vmfs)" do
|
121
|
-
prepare_image({'thin_disk' => false, 'type' => 'enterprise'}
|
122
|
+
prepare_image({'thin_disk' => false, 'type' => 'enterprise'})
|
122
123
|
|
123
124
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 5368709120))
|
124
125
|
|
@@ -141,7 +142,7 @@ module BoxGrinder
|
|
141
142
|
end
|
142
143
|
|
143
144
|
it "should change vmdk data (flat)" do
|
144
|
-
prepare_image({'thin_disk' => false, 'type' => 'enterprise'}
|
145
|
+
prepare_image({'thin_disk' => false, 'type' => 'enterprise'})
|
145
146
|
|
146
147
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 5368709120))
|
147
148
|
|
@@ -165,7 +166,7 @@ module BoxGrinder
|
|
165
166
|
end
|
166
167
|
|
167
168
|
it "should change vmdk data (flat) enabling thin disk" do
|
168
|
-
prepare_image({'thin_disk' => true, 'type' => 'enterprise'}
|
169
|
+
prepare_image({'thin_disk' => true, 'type' => 'enterprise'})
|
169
170
|
|
170
171
|
File.should_receive(:stat).with("a/base/image/path.raw").and_return(OpenStruct.new(:size => 5368709120))
|
171
172
|
|
@@ -193,7 +194,7 @@ module BoxGrinder
|
|
193
194
|
|
194
195
|
describe ".build_vmware_personal" do
|
195
196
|
it "should build personal thick image" do
|
196
|
-
prepare_image({'type' => 'personal', 'thin_disk' => false}
|
197
|
+
prepare_image({'type' => 'personal', 'thin_disk' => false})
|
197
198
|
|
198
199
|
@exec_helper.should_receive(:execute).with("cp 'a/base/image/path.raw' 'build/path/vmware-plugin/tmp/full.raw'")
|
199
200
|
File.should_receive(:open).once.with("build/path/vmware-plugin/tmp/full.vmx", "w")
|
@@ -203,7 +204,7 @@ module BoxGrinder
|
|
203
204
|
end
|
204
205
|
|
205
206
|
it "should build personal thin image" do
|
206
|
-
prepare_image({'type' => 'personal', 'thin_disk' => true}
|
207
|
+
prepare_image({'type' => 'personal', 'thin_disk' => true})
|
207
208
|
|
208
209
|
@image_helper.should_receive(:convert_disk).with('a/base/image/path.raw', :vmdk, 'build/path/vmware-plugin/tmp/full.vmdk')
|
209
210
|
File.should_receive(:open).once.with("build/path/vmware-plugin/tmp/full.vmx", "w")
|
@@ -214,7 +215,7 @@ module BoxGrinder
|
|
214
215
|
|
215
216
|
describe ".build_vmware_enterprise" do
|
216
217
|
it "should build enterprise thick image" do
|
217
|
-
prepare_image({'type' => 'enterprise', 'thin_disk' => false}
|
218
|
+
prepare_image({'type' => 'enterprise', 'thin_disk' => false})
|
218
219
|
|
219
220
|
@plugin.should_receive(:change_common_vmx_values).and_return("")
|
220
221
|
@exec_helper.should_receive(:execute).with("cp 'a/base/image/path.raw' 'build/path/vmware-plugin/tmp/full.raw'")
|
@@ -225,7 +226,7 @@ module BoxGrinder
|
|
225
226
|
end
|
226
227
|
|
227
228
|
it "should build enterprise thin image" do
|
228
|
-
prepare_image({'type' => 'enterprise', 'thin_disk' => true}
|
229
|
+
prepare_image({'type' => 'enterprise', 'thin_disk' => true})
|
229
230
|
|
230
231
|
@plugin.should_receive(:change_common_vmx_values).and_return("")
|
231
232
|
@exec_helper.should_receive(:execute).with("cp 'a/base/image/path.raw' 'build/path/vmware-plugin/tmp/full.raw'")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxgrinder-build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 3
|
10
|
+
version: 0.9.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marek Goldmann
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-28 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -156,6 +156,7 @@ extra_rdoc_files:
|
|
156
156
|
- lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
|
157
157
|
- lib/boxgrinder-build/plugins/os/rpm-based/src/base.repo
|
158
158
|
- lib/boxgrinder-build/plugins/os/rpm-based/src/motd.init
|
159
|
+
- lib/boxgrinder-build/plugins/os/sl/sl-plugin.rb
|
159
160
|
- lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb
|
160
161
|
- lib/boxgrinder-build/plugins/platform/ec2/src/fstab_32bit
|
161
162
|
- lib/boxgrinder-build/plugins/platform/ec2/src/fstab_64bit
|
@@ -176,6 +177,26 @@ files:
|
|
176
177
|
- Rakefile
|
177
178
|
- bin/boxgrinder-build
|
178
179
|
- boxgrinder-build.gemspec
|
180
|
+
- integ/appliances/_hardware_cpus.appl
|
181
|
+
- integ/appliances/_hardware_memory.appl
|
182
|
+
- integ/appliances/_hardware_partitions_home.appl
|
183
|
+
- integ/appliances/_hardware_partitions_root.appl
|
184
|
+
- integ/appliances/_os_password.appl
|
185
|
+
- integ/appliances/_packages_groups_base.appl
|
186
|
+
- integ/appliances/_packages_groups_core.appl
|
187
|
+
- integ/appliances/_packages_squid.appl
|
188
|
+
- integ/appliances/_packages_utils.appl
|
189
|
+
- integ/appliances/_repos_boxgrinder_permanent_noarch.appl
|
190
|
+
- integ/appliances/_repos_testlocal_ephemeral_noarch.appl
|
191
|
+
- integ/appliances/_test_base.appl
|
192
|
+
- integ/appliances/gnome-fedora.appl
|
193
|
+
- integ/appliances/jeos-centos.appl
|
194
|
+
- integ/appliances/jeos-fedora.appl
|
195
|
+
- integ/appliances/modular.appl
|
196
|
+
- integ/packages/ephemeral-repo-test-0.1-1.noarch.rpm
|
197
|
+
- integ/packages/local-repo-test.spec
|
198
|
+
- integ/spec/jeos-spec.rb
|
199
|
+
- integ/spec/modular-spec.rb
|
179
200
|
- lib/boxgrinder-build.rb
|
180
201
|
- lib/boxgrinder-build/appliance.rb
|
181
202
|
- lib/boxgrinder-build/helpers/augeas-helper.rb
|
@@ -203,6 +224,7 @@ files:
|
|
203
224
|
- lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
|
204
225
|
- lib/boxgrinder-build/plugins/os/rpm-based/src/base.repo
|
205
226
|
- lib/boxgrinder-build/plugins/os/rpm-based/src/motd.init
|
227
|
+
- lib/boxgrinder-build/plugins/os/sl/sl-plugin.rb
|
206
228
|
- lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb
|
207
229
|
- lib/boxgrinder-build/plugins/platform/ec2/src/fstab_32bit
|
208
230
|
- lib/boxgrinder-build/plugins/platform/ec2/src/fstab_64bit
|
@@ -216,7 +238,6 @@ files:
|
|
216
238
|
- lib/boxgrinder-build/plugins/platform/vmware/src/base.vmx
|
217
239
|
- lib/boxgrinder-build/plugins/platform/vmware/vmware-plugin.rb
|
218
240
|
- rubygem-boxgrinder-build.spec
|
219
|
-
- spec/Rakefile
|
220
241
|
- spec/appliance-spec.rb
|
221
242
|
- spec/helpers/augeas-helper-spec.rb
|
222
243
|
- spec/helpers/guestfs-helper-spec.rb
|
@@ -241,6 +262,7 @@ files:
|
|
241
262
|
- spec/plugins/os/rpm-based/src/jeos-f13-plain.ks
|
242
263
|
- spec/plugins/os/rpm-based/src/jeos-f13-without-version.ks
|
243
264
|
- spec/plugins/os/rpm-based/src/jeos-f13.ks
|
265
|
+
- spec/plugins/os/sl/sl-plugin-spec.rb
|
244
266
|
- spec/plugins/platform/ec2/ec2-plugin-spec.rb
|
245
267
|
- spec/plugins/platform/virtualbox/virtualbox-plugin-spec.rb
|
246
268
|
- spec/plugins/platform/vmware/vmware-plugin-spec.rb
|
data/spec/Rakefile
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2010 Red Hat, Inc.
|
3
|
-
#
|
4
|
-
# This is free software; you can redistribute it and/or modify it
|
5
|
-
# under the terms of the GNU Lesser General Public License as
|
6
|
-
# published by the Free Software Foundation; either version 3 of
|
7
|
-
# the License, or (at your option) any later version.
|
8
|
-
#
|
9
|
-
# This software is distributed in the hope that it will be useful,
|
10
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
-
# Lesser General Public License for more details.
|
13
|
-
#
|
14
|
-
# You should have received a copy of the GNU Lesser General Public
|
15
|
-
# License along with this software; if not, write to the Free
|
16
|
-
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
17
|
-
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
18
|
-
|
19
|
-
require 'rubygems'
|
20
|
-
require 'rake'
|
21
|
-
require 'spec/rake/spectask'
|
22
|
-
|
23
|
-
desc "Run all examples"
|
24
|
-
Spec::Rake::SpecTask.new(:default) do |t|
|
25
|
-
t.libs.unshift "../../boxgrinder-core/lib"
|
26
|
-
t.libs.unshift "../../boxgrinder-core/spec"
|
27
|
-
|
28
|
-
t.spec_files = FileList['**/*-spec.rb']
|
29
|
-
t.rcov = true
|
30
|
-
t.rcov_opts = ['--exclude', 'spec' ]
|
31
|
-
t.spec_opts = [ '--format', 's']
|
32
|
-
end
|