Sha256: e19bd5b7f43f475a27b84a2597802dbe829a36b217fc8586ced7b60dd0165bc1

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

#!/usr/bin/env ruby

# Adjust lib path
_lib=File.expand_path(File.dirname(__FILE__) + '/../lib')
$:.unshift(_lib) unless $:.include?(_lib)

require "dldinternet/aws/ec2"
include DLDInternet::AWS::EC2

require "mechanize"
mechanize = Mechanize.new
mechanize.open_timeout = 5
mechanize.read_timeout = 10

require "awesome_print"
require "colorize"

begin
  puts getInstanceTypes(:mechanize => mechanize)[:instance_type_details].ai
rescue Timeout::Error => e
  puts "Unable to retrieve instance type details in a reasonable time (#{mechanize.open_timeout}s). Giving up ...".light_red
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-ec2-instance_types-1.0.4 bin/aws-ec2-instance_types