boxgrinder-build 0.0.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,7 @@ module BoxGrinder
58
58
 
59
59
  [ :vmware, :raw ].each do |image_format|
60
60
  basename = File.basename( @appliance_config.path.file.package[image_format][package_format] )
61
- files_to_upload = { basename => @appliance_config.path.file.package[image_format][package_format] }
61
+ files_to_upload = { "#{@appliance_config.name}/#{@appliance_config.version}.#{@appliance_config.release}/#{@appliance_config.hardware.arch}/#{basename}" => @appliance_config.path.file.package[image_format][package_format] }
62
62
 
63
63
  desc "Create #{image_format.to_s.upcase} #{package_format.to_s.upcase} package for #{@appliance_config.simple_name} appliance"
64
64
  task "appliance:#{@appliance_config.name}:package:#{image_format}:#{package_format}" => [ @appliance_config.path.file.package[image_format][package_format] ]
@@ -110,8 +110,9 @@ module BoxGrinder
110
110
  end
111
111
 
112
112
  def upload_to_cloudfront( files )
113
+ AWSHelper.new( @config, @appliance_config )
113
114
 
114
- bucket = @config.release.cloudfront['bucket_name']
115
+ bucket = @config.data['release']['cloudfront']['bucket_name']
115
116
 
116
117
  @log.info "Uploading #{@appliance_config.name} appliance to CloudFront bucket '#{bucket}'..."
117
118
 
@@ -180,7 +180,7 @@ module BoxGrinder
180
180
 
181
181
  def customize
182
182
  @log.debug "Customizing VMware image..."
183
- ApplianceCustomizeHelper.new( @config, @appliance_config, @appliance_config.path.file.vmware.disk ).customize do |customizer, guestfs|
183
+ ApplianceCustomizeHelper.new( @config, @appliance_config, @appliance_config.path.file.vmware.disk, :log => @log ).customize do |customizer, guestfs|
184
184
  # install_vmware_tools( customizer )
185
185
  execute_post_operations( guestfs )
186
186
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 2
7
8
  - 0
8
- - 7
9
- version: 0.0.7
9
+ version: 0.2.0
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-03-29 00:00:00 +02:00
17
+ date: 2010-03-31 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency