Class: VolumeSweeper::Providers::Base
- Inherits:
-
Object
- Object
- VolumeSweeper::Providers::Base
- Defined in:
- lib/volume_sweeper/providers/base.rb
Instance Attribute Summary collapse
-
#base_link ⇒ Object
readonly
Returns the value of attribute base_link.
Instance Method Summary collapse
- #delete_volumes(ids_list) ⇒ Object
-
#initialize(**kwargs) ⇒ Base
constructor
A new instance of Base.
- #scan_volumes ⇒ Object
Constructor Details
#initialize(**kwargs) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/volume_sweeper/providers/base.rb', line 7 def initialize **kwargs @run_mode = kwargs[:mode]&.to_sym || :audit @config_location = kwargs[:config_path] @account_id = kwargs[:account_id] @compartment_id = kwargs[:account_id] @region = kwargs[:region] @log = Utils::Log.instance @log.msg "#{self.class.name.downcase.split(":").last}: running in :#{@run_mode} mode." end |
Instance Attribute Details
#base_link ⇒ Object (readonly)
Returns the value of attribute base_link.
5 6 7 |
# File 'lib/volume_sweeper/providers/base.rb', line 5 def base_link @base_link end |
Instance Method Details
#delete_volumes(ids_list) ⇒ Object
19 |
# File 'lib/volume_sweeper/providers/base.rb', line 19 def delete_volumes ids_list; end |
#scan_volumes ⇒ Object
18 |
# File 'lib/volume_sweeper/providers/base.rb', line 18 def scan_volumes; end |