class Elastomer::CLI::Node
Public Instance Methods
hot_threads()
click to toggle source
# File lib/elastomer/cli/node.rb, line 5 def hot_threads response = all_nodes.hot_threads puts response end
list()
click to toggle source
# File lib/elastomer/cli/node.rb, line 11 def list response = all_nodes.info puts Terminal::Table.new( :headings => ['NAME', 'HOSTNAME', 'VERSION', 'HTTP ADDRESS', 'ATTRIBUTES'], :rows => response["nodes"].collect do |node_id, node| [ node["name"], node["host"], node["version"], node["http_address"], node["attributes"] ] end ) end
Private Instance Methods
all_nodes()
click to toggle source
# File lib/elastomer/cli/node.rb, line 32 def all_nodes client.nodes end
local_node()
click to toggle source
# File lib/elastomer/cli/node.rb, line 28 def local_node client.nodes('_local') end