Sha256: 9c79bb5737e9198546198b35c70fad91c89bc97da044616b06513c0018d249db
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
require 'fog' require 'hirb' module Yun class Yun def self.list nodes = Fog::Compute.new({:provider => "aws", :region => "us-west-1"}).servers.map do |node| { :id => node.id, :flavor_id => node.flavor_id, :image_id => node.image_id, :address => node.private_ip_address, :created_at => node.created_at, :status => node.state, :instance_type => node.root_device_type } end.sort_by do |node| node[:id] || "" end puts Hirb::Helpers::AutoTable.render nodes end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yun-0.0.1 | lib/yun/yun.rb |