Sha256: dc9a587dbea7619849741447ffda60a35fe348dd4d03c77808781e8f29e21b72

Contents?: true

Size: 397 Bytes

Versions: 11

Compression:

Stored size: 397 Bytes

Contents

module AwsEc2
  autoload :Cleaner, 'aws_ec2/cleaner'

  class Clean < Command
    desc "ami", "Clean until AMI available."
    long_desc Help.text("clean:ami")
    option :keep, type: :numeric, default: 2, desc: "Number of images to keep"
    option :noop, type: :boolean, desc: "Noop or dry-run mode"
    def ami(query)
      Cleaner::Ami.new(options.merge(query: query)).clean
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aws-ec2-1.4.9 lib/aws_ec2/clean.rb
aws-ec2-1.4.8 lib/aws_ec2/clean.rb
aws-ec2-1.4.7 lib/aws_ec2/clean.rb
aws-ec2-1.4.6 lib/aws_ec2/clean.rb
aws-ec2-1.4.5 lib/aws_ec2/clean.rb
aws-ec2-1.4.4 lib/aws_ec2/clean.rb
aws-ec2-1.4.3 lib/aws_ec2/clean.rb
aws-ec2-1.4.2 lib/aws_ec2/clean.rb
aws-ec2-1.4.1 lib/aws_ec2/clean.rb
aws-ec2-1.4.0 lib/aws_ec2/clean.rb
aws-ec2-1.3.2 lib/aws_ec2/clean.rb