lib/boxgrinder-build/plugins/platform/vmware/vmware-plugin.rb in boxgrinder-build-0.3.7 vs lib/boxgrinder-build/plugins/platform/vmware/vmware-plugin.rb in boxgrinder-build-0.3.8
- old
+ new
@@ -54,12 +54,12 @@
@exec_helper.execute "cp #{base_image_path} #{@deliverables[:disk]}" if ( !File.exists?( @deliverables[:disk] ) || File.new( base_image_path ).mtime > File.new( @deliverables[:disk] ).mtime )
@log.debug "VMware image copied."
- if @appliance_config.post.vmware.size > 0
+ unless @appliance_config.post['vmware'].nil?
customize( @deliverables[:disk] ) do |guestfs, guestfs_helper|
- @appliance_config.post.vmware.each do |cmd|
+ @appliance_config.post['vmware'].each do |cmd|
@log.debug "Executing #{cmd}"
guestfs.sh( cmd )
end
@log.debug "Post commands from appliance definition file executed."
end
\ No newline at end of file