Sha256: 533e94fcc7d05faf5af3646cd7ef7437a9eaeb46325b91d6f0ba24748b6220f9

Contents?: true

Size: 646 Bytes

Versions: 10

Compression:

Stored size: 646 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

10 entries across 10 versions & 1 rubygems

Version Path
awspec-0.33.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.32.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.31.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.30.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.29.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.28.1 lib/awspec/helper/finder/directconnect.rb
awspec-0.28.0 lib/awspec/helper/finder/directconnect.rb
awspec-0.27.2 lib/awspec/helper/finder/directconnect.rb
awspec-0.27.1 lib/awspec/helper/finder/directconnect.rb
awspec-0.27.0 lib/awspec/helper/finder/directconnect.rb