Method: Awspec::Generator::Spec::Ebs#generate_attachment_specs

Defined in:
lib/awspec/generator/spec/ebs.rb

#generate_attachment_specs(volume) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/awspec/generator/spec/ebs.rb', line 15

def generate_attachment_specs(volume)
  linespecs = []
  volume.attachments.each do |attachment|
    instance = find_ec2(attachment.instance_id)
    linespecs.push(ERB.new(attachment_linetemplate, nil, '-').result(binding)) if attachment.instance_id
  end
  linespecs
end