Method: Awspec::Generator::Spec::Ebs#attachment_linetemplate

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

#attachment_linetemplateObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/awspec/generator/spec/ebs.rb', line 24

def attachment_linetemplate
  template = <<-'EOF'
<%- if instance.tag_name -%>
it { should be_attached_to('<%= instance.tag_name %>') }
<%- else -%>
it { should be_attached_to('<%= instance.instance_id %>') }
<%- end -%>
EOF
  template
end