Sha256: 21d61f775cecc4aa52739753d8df5fd21a8ceadb8b49752efa47624c3f7ffd49

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'cloudkick'

CONSUMER_KEY = 'ENTER_KEY'
CONSUMER_SECRET = 'ENTER_SECRET'

client = Cloudkick::Base.new(CONSUMER_KEY,
                             CONSUMER_SECRET)

agent_nodes = client.get('nodes', 'tag:agent')
nodes = client.get('nodes')

nodes.each do |node|
  puts "#{node.name}: #{node.status}"
end

# puts
# puts nodes.pssh('hostname')

# agent_nodes do |node|
#   puts node.check('mem')
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudkick-0.1.1 doc/example.rb