Method: Awspec::Generator::Spec::NetworkInterface#generate_instance_spec
- Defined in:
- lib/awspec/generator/spec/network_interface.rb
#generate_instance_spec(interface) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/awspec/generator/spec/network_interface.rb', line 27 def generate_instance_spec(interface) return unless interface..instance_id instance = find_ec2(interface..instance_id) instance_spec = if instance.tag_name "it { should be_attached_to('#{instance.tag_name}')" else "it { should be_attached_to('#{instance.instance_id}')" end instance_spec += ".as_eth#{interface..device_index} }" instance_spec end |