Class: InstanceSelector::Providers::AbstractProvider
- Inherits:
-
Object
- Object
- InstanceSelector::Providers::AbstractProvider
- Defined in:
- lib/instance_selector/providers/provider.rb
Overview
Abstract class for providers
Instance Method Summary collapse
-
#instances(_args = {}) ⇒ Object
Returns a hash of instance network resources and the associated attributes.
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' }
}
11 12 13 |
# File 'lib/instance_selector/providers/provider.rb', line 11 def instances(_args = {}) raise NotImplementedError, 'A provider must implement #instances' end |