class BundleImageParameters

The Bundle Image command line parameters.

The Bundle Image command line parameters.

Constants

IMAGE_PATH_DESCRIPTION
PREFIX_DESCRIPTION

Attributes

image_path[R]
prefix[R]

Public Instance Methods

mandatory_params() click to toggle source
Calls superclass method BundleParameters#mandatory_params
# File lib/ec2/amitools/bundleimageparameters.rb, line 22
def mandatory_params()
  super()
  on('-i', '--image PATH', String, IMAGE_PATH_DESCRIPTION) do |path|
    assert_file_exists(path, '--image')
    @image_path = path
  end
end
optional_params() click to toggle source
Calls superclass method BundleMachineParameters#optional_params
# File lib/ec2/amitools/bundleimageparameters.rb, line 30
def optional_params()
  super()
  on('-p', '--prefix PREFIX', String, PREFIX_DESCRIPTION) do |prefix|
    assert_good_key(prefix, '--prefix')
    @prefix = prefix
  end
end
validate_params() click to toggle source
Calls superclass method BundleParameters#validate_params
# File lib/ec2/amitools/bundleimageparameters.rb, line 38
def validate_params()
  raise MissingMandatory.new('--image') unless @image_path
  super()
end