Class: VolumeSweeper::Providers::Aws
- Defined in:
- lib/volume_sweeper/providers/aws.rb
Constant Summary collapse
- DEFAULT_REGION =
'us-west-2'
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #delete_block_volumes(ids_list) ⇒ Object
-
#initialize(config_path: nil, region: nil, mode: :audit, **kwargs) ⇒ Aws
constructor
A new instance of Aws.
- #scan_block_volumes ⇒ Object
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
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_volumes ⇒ Object
17 18 19 |
# File 'lib/volume_sweeper/providers/aws.rb', line 17 def scan_block_volumes raise NotImplementedError end |