Sha256: c8ef58e28d7e1d1840eb945c126d0cddc4bb5c156802bf81527edd7405cde367
Contents?: true
Size: 596 Bytes
Versions: 5
Compression:
Stored size: 596 Bytes
Contents
require 'rubygems' require 'cloudkick' # your OAuth consumer credentials. # https://support.cloudkick.com/API/Authentication#Generating_OAuth_Consumers CONSUMER_KEY = 'ENTER_KEY' CONSUMER_SECRET = 'ENTER_SECRET' client = Cloudkick::Base.new(CONSUMER_KEY, CONSUMER_SECRET) # get all nodes and print name and status nodes = client.get('nodes') nodes.each do |node| puts "#{node.name}: #{node.status}" end # get all nodes tagged "agent" and print memory information agent_nodes = client.get('nodes', 'tag:agent') agent_nodes do |node| puts node.check('mem') end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
cloudkick-0.2.16 | doc/example.rb |
cloudkick-0.2.15 | doc/example.rb |
cloudkick-0.2.14 | doc/example.rb |
cloudkick-0.2.13 | doc/example.rb |
cloudkick-0.2.12 | doc/example.rb |