Sha256: f84110f52e9192e87c9f94c75c9e0aba7c922224eda7f75fe7e02c7c68363331

Contents?: true

Size: 648 Bytes

Versions: 13

Compression:

Stored size: 648 Bytes

Contents

module Awspec::Helper
  module Finder
    module Directconnect
      def find_virtual_interface(virtual_interface_id)
        res = @directconnect_client.describe_virtual_interfaces
        ret = res.virtual_interfaces.select do |virtual_interface|
          next true if virtual_interface.virtual_interface_id == virtual_interface_id
          next true if virtual_interface.virtual_interface_name == virtual_interface_id
        end
        return ret.first if ret.count == 1
      end

      def select_virtual_interfaces
        res = @directconnect_client.describe_virtual_interfaces
        res.virtual_interfaces
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-0.26.2 lib/awspec/helper/finder/directconnect.rb
awspec-0.26.1 lib/awspec/helper/finder/directconnect.rb
awspec-0.26.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.25.3 lib/awspec/helper/finder/directconnect.rb
awspec-0.25.2 lib/awspec/helper/finder/directconnect.rb
awspec-0.25.1 lib/awspec/helper/finder/directconnect.rb
awspec-0.25.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.24.2 lib/awspec/helper/finder/directconnect.rb
awspec-0.24.1 lib/awspec/helper/finder/directconnect.rb
awspec-0.24.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.23.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.22.1 lib/awspec/helper/finder/directconnect.rb
awspec-0.22.0 lib/awspec/helper/finder/directconnect.rb