boxgrinder-core 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -125,23 +125,12 @@ module BoxGrinder
|
|
|
125
125
|
end
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
# TODO this needs to be plugin independent!
|
|
129
128
|
def merge_post_operations
|
|
130
|
-
@appliance_config.post.
|
|
131
|
-
@appliance_config.post.ec2.clear
|
|
132
|
-
@appliance_config.post.vmware.clear
|
|
129
|
+
@appliance_config.post.each_value {|cmds| cmds.clear}
|
|
133
130
|
|
|
134
131
|
@appliance_configs.each do |appliance_config|
|
|
135
|
-
appliance_config.post.
|
|
136
|
-
@appliance_config.post
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
appliance_config.post.ec2.each do |cmd|
|
|
140
|
-
@appliance_config.post.ec2 << cmd
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
appliance_config.post.vmware.each do |cmd|
|
|
144
|
-
@appliance_config.post.vmware << cmd
|
|
132
|
+
appliance_config.post.each do |platform, cmds|
|
|
133
|
+
cmds.each { |cmd| @appliance_config.post[platform] << cmd }
|
|
145
134
|
end
|
|
146
135
|
end
|
|
147
136
|
end
|
|
@@ -92,18 +92,14 @@ module BoxGrinder
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
unless definition['hardware'].nil?
|
|
95
|
-
appliance_config.hardware.arch = definition['hardware']['
|
|
95
|
+
appliance_config.hardware.arch = definition['hardware']['arch'] unless definition['hardware']['arch'].nil?
|
|
96
96
|
appliance_config.hardware.cpus = definition['hardware']['cpus'] unless definition['hardware']['cpus'].nil?
|
|
97
97
|
appliance_config.hardware.memory = definition['hardware']['memory'] unless definition['hardware']['memory'].nil?
|
|
98
98
|
appliance_config.hardware.network = definition['hardware']['network'] unless definition['hardware']['network'].nil?
|
|
99
99
|
appliance_config.hardware.partitions = definition['hardware']['partitions'] unless definition['hardware']['partitions'].nil?
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
unless definition['post'].nil?
|
|
103
|
-
appliance_config.post.base = definition['post']['base'] unless definition['post']['base'].nil?
|
|
104
|
-
appliance_config.post.ec2 = definition['post']['ec2'] unless definition['post']['ec2'].nil?
|
|
105
|
-
appliance_config.post.vmware = definition['post']['vmware'] unless definition['post']['vmware'].nil?
|
|
106
|
-
end
|
|
102
|
+
definition['post'].each { |key, value| appliance_config.post[key] = value } unless definition['post'].nil?
|
|
107
103
|
|
|
108
104
|
appliance_config
|
|
109
105
|
end
|
|
@@ -42,11 +42,7 @@ module BoxGrinder
|
|
|
42
42
|
@hardware.memory = APPLIANCE_DEFAULTS[:hardware][:memory]
|
|
43
43
|
@hardware.network = APPLIANCE_DEFAULTS[:hardware][:network]
|
|
44
44
|
|
|
45
|
-
@post =
|
|
46
|
-
|
|
47
|
-
@post.base = []
|
|
48
|
-
@post.ec2 = []
|
|
49
|
-
@post.vmware = []
|
|
45
|
+
@post = {}
|
|
50
46
|
|
|
51
47
|
@packages = OpenStruct.new
|
|
52
48
|
@packages.includes = []
|
|
@@ -69,6 +65,7 @@ module BoxGrinder
|
|
|
69
65
|
#attr_reader :packages
|
|
70
66
|
attr_reader :path
|
|
71
67
|
attr_reader :file
|
|
68
|
+
attr_reader :post
|
|
72
69
|
|
|
73
70
|
attr_accessor :packages
|
|
74
71
|
attr_accessor :repos
|
|
@@ -77,7 +74,6 @@ module BoxGrinder
|
|
|
77
74
|
attr_accessor :name
|
|
78
75
|
attr_accessor :version
|
|
79
76
|
attr_accessor :release
|
|
80
|
-
attr_accessor :post
|
|
81
77
|
|
|
82
78
|
def init
|
|
83
79
|
init_arch
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 11
|
|
9
|
+
version: 0.0.11
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- BoxGrinder Project
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-06-08 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|