Sha256: aeda779005e69984f9ce50ec3af1c0c8198d82d1ded5fe8f12e9483bcb4ba21e
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
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.flag [:t, :tag], :default_value => "no-reserved-instance", :desc => "Read a tag and group separately during audit" c.flag [:h, :config_json], :default_value => nil, :desc => "Print the audit according to this config json object instead of to config file" c.switch [:n, :no_tag], :desc => "Ignore all tags during audit" c.switch [:s, :slack], :desc => "Will print condensed version of audit to a Slack channel" c.switch [:z, :zone_output], :desc => "Will print the Missing RIs and Tagged instances with zones" c.action do |global_options, options, args| require_relative '../scripts/audit' raise ArgumentError, 'You must specify an AWS account' unless args.first SportNginAwsAuditor::Scripts::Audit.execute(args.first, options, global_options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sport_ngin_aws_auditor-3.10.1 | lib/sport_ngin_aws_auditor/commands/audit.rb |
sport_ngin_aws_auditor-3.10.0 | lib/sport_ngin_aws_auditor/commands/audit.rb |