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
11 12 13 14 15 16 17 |
# File 'lib/aws_ami_cleanup/commands.rb', line 11 def clean_amis cleanup_amis = AwsAmiCleanup::CleanupAmis.new(region, [:number_of_amis_to_keep]&.to_i) cleanup_amis.execute!(ami_name: [:ami_name], ami_owner: [:ami_owner], dry_run: [:dry_run]&.casecmp?('true')) end |
#console ⇒ Object
20 21 22 23 |
# File 'lib/aws_ami_cleanup/commands.rb', line 20 def console require 'byebug' byebug end |