Sha256: f69375b720e185aaac88f87c8caac3d29a10a4a45fc27482f3c8b358d71e8684
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
#!/usr/bin/env ruby require 'trollop' require 'logger' require 'bjn_inventory/version' require 'bjn_inventory/source_command/aws_elb' parser = Trollop::Parser.new do version BjnInventory::VERSION banner <<-USAGE.gsub(/^\s{8}/,'') Usage: aws-elb-source [options] Download entries corresponding to classic elastic loadbalancers (not application load balancers) USAGE opt :region, "Specify region (default is all regions)", type: :string, multi: true opt :profile, "Specify AWS client profile", type: :string opt :filters, 'Specify AWS filters in JSON (e.g. `[{"name":"tag:ENVIRONMENT","values":["Production"]}]`)', type: :string opt :output, "Send output to file instead of stdout", type: :string opt :verbose, "Produce verbose output", short: '-v' opt :debug, 'Enable debug output', short: '-D' opt :syslog, 'Log to Syslog', short: '-S' stop_on_unknown end opt = Trollop::with_standard_exception_handling parser do parser.parse(ARGV) end if opt[:syslog] require 'syslog/logger' logger = Syslog::Logger.new 'aws-elb-source' else logger = Logger.new STDERR end if opt[:debug] logger.level = Logger::DEBUG elsif opt[:verbose] logger.level = Logger::INFO else logger.level = Logger::WARN end command = BjnInventory::SourceCommand::AwsElb.new(opt.merge({ logger: logger })) command.run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bjn_inventory-1.6.1 | bin/aws-elb-source |
bjn_inventory-1.5.1 | bin/aws-elb-source |