class Object

Constants

BUNDLE_IMAGE_MANUAL

The manual.

BUNDLE_IMAGE_NAME
BUNDLE_VOL_MANUAL
BUNDLE_VOL_NAME
DELETE_BUNDLE_MANUAL
DELETE_BUNDLE_NAME
DOWNLOAD_BUNDLE_MANUAL
DOWNLOAD_BUNDLE_NAME
MAX_SIZE
MAX_SIZE_MB
MIGRATE_BUNDLE_MANUAL
MIGRATE_BUNDLE_NAME
MIGRATE_MANIFEST_MANUAL
MIGRATE_MANIFEST_NAME
RETRY_WAIT_PERIOD
UNBUNDLE_MANUAL
UNBUNDLE_NAME
UPLOAD_BUNDLE_MANUAL
UPLOAD_BUNDLE_NAME
USAGE

Public Instance Methods

assert_true(expr) click to toggle source
# File lib/ec2/amitools/xmlbuilder.rb, line 225
def assert_true(expr)
  raise 'expected true' if !expr
end
gen_ident() click to toggle source

generate a unique identifier used for filenames

# File lib/ec2/amitools/util.rb, line 18
def gen_ident()
  (0..19).inject("") {|ident, n| ident+(?A + Kernel.rand(26)).chr}
end
open4(*cmd, &b) click to toggle source
# File lib/ec2/oem/open4.rb, line 399
def open4(*cmd, &b) cmd.size == 0 ? Open4 : Open4::popen4(*cmd, &b) end