Class: AwsAmiCleanup::Commands
- Inherits:
-
Thor
- Object
- Thor
- AwsAmiCleanup::Commands
- Defined in:
- lib/aws_ami_cleanup/commands.rb
Instance Method Summary collapse
Instance Method Details
#clean_amis ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/aws_ami_cleanup/commands.rb', line 12 def clean_amis cleanup_amis = AwsAmiCleanup::CleanupAmis.new( region, [:number_of_amis_to_keep]&.to_i, [:skip_verification] ) cleanup_amis.execute!(ami_name: [:ami_name], ami_owner: [:ami_owner], dry_run: [:dry_run]) end |
#console ⇒ Object
25 26 27 28 |
# File 'lib/aws_ami_cleanup/commands.rb', line 25 def console require 'byebug' byebug end |