Class: InstanceSelector::Providers::AbstractProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/instance_selector/providers/provider.rb

Overview

Abstract class for providers

Direct Known Subclasses

AWS, Override

Instance Method Summary collapse

Instance Method Details

#instances(_args = {}) ⇒ Object

Returns a hash of instance network resources and the associated attributes. e.g. (not realistic data):

{
  '127.0.0.1' => { name: 'localhost', identifier: 'N/A' }
  '10.10.1.1' => { name: 'aws name tag', identifier: 'i-abcdef01' }
}

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/instance_selector/providers/provider.rb', line 11

def instances(_args = {})
  raise NotImplementedError, 'A provider must implement #instances'
end