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
10 11 12 13 14 |
# File 'lib/aws_ami_cleanup/commands.rb', line 10 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]) end |
#console ⇒ Object
17 18 19 20 |
# File 'lib/aws_ami_cleanup/commands.rb', line 17 def console require 'byebug' byebug end |