lib/cluster_chef/volume.rb
def block_device_mapping
      hsh = { 'DeviceName' => device }
      if ephemeral_device?
        hsh['VirtualName'] = volume_id
      elsif create_at_launch?
        hsh.merge!({
            'Ebs.SnapshotId' => snapshot_id,
            'Ebs.VolumeSize' => size,
            'Ebs.DeleteOnTermination' => (! keep).to_s })
      else
        return
      end
      hsh
    end
# An array of hashes with dorky-looking keys, just like Fog wants it.
An array of hashes with dorky-looking keys, just like Fog wants it.
An array of hashes with dorky - looking keys just like Fog wants it .
def block_device_mapping
      hsh = { 'DeviceName' => device }
      if ephemeral_device?
        hsh['VirtualName'] = volume_id
      elsif create_at_launch?
        hsh.merge!({
            'Ebs.SnapshotId' => snapshot_id,
            'Ebs.VolumeSize' => size,
            'Ebs.DeleteOnTermination' => (! keep).to_s })
      else
        return
      end
      hsh
    end
def block_device_mapping hsh = { 'DeviceName' => device } if ephemeral_device? hsh [ 'VirtualName' ] = volume_id elsif create_at_launch? hsh . merge! ( { 'Ebs.SnapshotId' => snapshot_id , 'Ebs.VolumeSize' => size , 'Ebs.DeleteOnTermination' => ( ! keep ) . to_s } ) else return end hsh end
An array of hashes with dorky-looking keys, just like Fog wants it.
An array of hashes with dorky - looking keys just like Fog wants it .