vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb
def attach_volume(volume_id, instance_id, device)
      link = generate_request("AttachVolume",
                              "VolumeId"   => volume_id.to_s,
                              "InstanceId" => instance_id.to_s,
                              "Device"     => device.to_s)
      request_info(link, QEc2AttachAndDetachVolumeParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
# Attach the specified EBS volume to a specified instance, exposing the
# volume using the specified device name.
#
#  ec2.attach_volume('vol-898a6fe0', 'i-7c905415', '/dev/sdh') #=>
#    { :aws_instance_id => "i-7c905415",
#      :aws_device      => "/dev/sdh",
#      :aws_status      => "attaching",
#      :aws_attached_at => "2008-03-28T14:14:39.000Z",
#      :aws_id          => "vol-898a6fe0" }
#
Attach the specified EBS volume to a specified instance, exposing the
volume using the specified device name.


Attach the specified EBS volume to a specified instance exposing the volume using the specified device name .
def attach_volume(volume_id, instance_id, device)
      link = generate_request("AttachVolume",
                              "VolumeId"   => volume_id.to_s,
                              "InstanceId" => instance_id.to_s,
                              "Device"     => device.to_s)
      request_info(link, QEc2AttachAndDetachVolumeParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def attach_volume ( volume_id , instance_id , device ) link = generate_request ( "AttachVolume" , "VolumeId" => volume_id . to_s , "InstanceId" => instance_id . to_s , "Device" => device . to_s ) request_info ( link , QEc2AttachAndDetachVolumeParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Attach the specified EBS volume to a specified instance, exposing the
volume using the specified device name.
Attach the specified EBS volume to a specified instance exposing the volume using the specified device name .
volume_id
instance_id
device