Sha256: e749288fefec00976251fe64dd0d8f8431c25e16a4787417bc88b0c18b8d03d6
Contents?: true
Size: 632 Bytes
Versions: 2
Compression:
Stored size: 632 Bytes
Contents
arg :aws_account desc 'Audits Reserved Instance Counts' command 'audit' do |c| c.switch [:e, :ec2], :desc => "Only audit EC2 instances" c.switch [:d, :rds], :desc => "Only audit RDS instances" c.switch [:c, :cache], :desc => "Only audit ElastiCache instances" c.switch [:r, :reserved], :desc => "Shows reserved instance counts" c.switch [:i, :instances], :desc => "Shows current instance counts" c.action do |global_options, options, args| require_relative '../scripts/audit' raise ArgumentError, 'You must specify an AWS account' unless args.first AwsAuditor::Scripts::Audit.execute(args.first,options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws_auditor-0.1.2 | lib/aws_auditor/commands/audit.rb |
aws_auditor-0.1.1 | lib/aws_auditor/commands/audit.rb |