Class: VolumeSweeper::Providers::Aws

Inherits:
Base
  • Object
show all
Defined in:
lib/volume_sweeper/providers/aws.rb

Constant Summary collapse

DEFAULT_REGION =
'us-west-2'

Instance Attribute Summary

Attributes inherited from Base

#base_link

Instance Method Summary collapse

Methods inherited from Base

#delete_volumes, #scan_volumes

Constructor Details

#initialize(config_path: nil, region: nil, mode: :audit, **kwargs) ⇒ Aws

Returns a new instance of Aws.



11
12
13
14
15
# File 'lib/volume_sweeper/providers/aws.rb', line 11

def initialize config_path: nil, region: nil, mode: :audit, **kwargs
  super
  @region ||= DEFAULT_REGION
  validate_attrs
end

Instance Method Details

#delete_block_volumes(ids_list) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
24
# File 'lib/volume_sweeper/providers/aws.rb', line 21

def delete_block_volumes ids_list
  return if ids_list.blank? || @run_mode != :delete
  raise NotImplementedError
end

#scan_block_volumesObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/volume_sweeper/providers/aws.rb', line 17

def scan_block_volumes
  raise NotImplementedError
end