Sha256: e52fc5ab3dfdcb1bc536fecfc612e76a57638f6c0a788f65979c5ffac81331c6
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
require 'thor' module Ec2spec class CLI < Thor desc 'ssh -h host1 ...', 'Compare the specifications of EC2 instances.' option 'host', aliases: 'h', type: :array, equired: true option 'days', type: :numeric option 'format' option 'region' option 'debug', type: :boolean # rubocop:disable Metrics/AbcSize def ssh hosts = options['host'] days = options['days'] format = options['format'] || :plain_text region = options['region'] || 'ap-northeast-1' Ec2spec.logger.level = Logger::DEBUG if options['debug'] client = Ec2spec::Client.new(hosts, days, format, region) puts client.run end # rubocop:enable Metrics/AbcSize end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ec2spec-0.1.2 | lib/ec2spec/cli.rb |