~awstools-dev/ubuntu/lucid/ec2-ami-tools/lucid

« back to all changes in this revision

Viewing changes to lib/ec2/amitools/manifestv3.rb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-01-13 11:46:59 UTC
  • Revision ID: james.westby@ubuntu.com-20090113114659-d2g70wekc6b0dz3x
Tags: 1.3-31057-0ubuntu1
* New upstream version. (LP: #310547)
* debian/patches/exclude-udev-rules.patch: Exclude the copying of 
  /etc/udev/rules.d/70-persistent-net.rules and
  /etc/udev/rules.d/z25_persistent-net.rules when rebundling an image. 
  (LP: #308548)
* debian/patches/point-to-right-place: Updated patch to take in account
  ec2-migrate-manifest and ec2-migrate-bundle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
    return get_element_text( 'image/user_encrypted_iv' )
211
211
  end
212
212
 
 
213
  # Get digest algorithm used.
 
214
  def digest_algorithm()
 
215
    return REXML::XPath.first(@doc.root, 'image/digest/@algorithm').to_s
 
216
  end
 
217
 
 
218
  # Get cipher algorithm used.
 
219
  def cipher_algorithm()
 
220
    return REXML::XPath.first(@doc.root, 'image/ec2_encrypted_key/@algorithm').to_s
 
221
  end
 
222
 
213
223
  # Retrieve a list of AMI bundle parts info. Each element is a hash
214
224
  # with the following elements:
215
225
  # * 'digest'
248
258
    return get_element_text( 'image/bundled_size' ).to_i
249
259
  end
250
260
  
 
261
  # Return the bundler name.
 
262
  def bundler_name()
 
263
    return get_element_text('bundler/name')
 
264
  end
 
265
  
 
266
  # Return the bundler version.
 
267
  def bundler_version()
 
268
    return get_element_text('bundler/version')
 
269
  end
 
270
  
 
271
  # Return the bundler release.
 
272
  def bundler_release()
 
273
    return get_element_text('bundler/release')
 
274
  end
 
275
  
251
276
  # Sign the manifest. If it is already signed, the signature and certificate
252
277
  # will be replaced
253
278
  def sign( privkey_filename )