def ssh
      hosts = options['host']
      days = options['days']
      rate = options['rate']
      unit = options['unit']
      app_id = options['app_id']
      calc_type = options['calc_type']
      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)
      if exchange_unit?(unit, rate, app_id)
        client.prepare_price_calculator(unit, rate,
                                        calc_type, app_id)
      end
      puts client.run
    end
def ssh
      hosts = options['host']
      days = options['days']
      rate = options['rate']
      unit = options['unit']
      app_id = options['app_id']
      calc_type = options['calc_type']
      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)
      if exchange_unit?(unit, rate, app_id)
        client.prepare_price_calculator(unit, rate,
                                        calc_type, app_id)
      end
      puts client.run
    end
rubocop:disable Metrics/AbcSize, Metrics/MethodLength