flare-tools 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/flare/tools.rb CHANGED
@@ -16,5 +16,5 @@ require 'net/dns/resolver'
16
16
  require 'tools/core'
17
17
 
18
18
  module FlareTools
19
- VERSION = '0.1.1'
19
+ VERSION = '0.1.2'
20
20
  end
@@ -11,7 +11,7 @@ module FlareTools
11
11
  class Stats < Core
12
12
  # {{{ constractor
13
13
  def initialize()
14
- # {{{ @format
14
+ # {{{ @format
15
15
  @format = "%20.20s:%5.5s" # hostname:port
16
16
  @format += " %6s" # state
17
17
  @format += " %6s" # role
@@ -25,7 +25,7 @@ class Stats < Core
25
25
  @format += " %6.6s" # uptime
26
26
  @format += " %7s" # version
27
27
  @format += "\n"
28
- # }}}
28
+ # }}}
29
29
 
30
30
  # {{{ @label
31
31
  @label = @format % [
@@ -43,7 +43,7 @@ class Stats < Core
43
43
  "uptime",
44
44
  "version",
45
45
  ]
46
- # }}}
46
+ # }}}
47
47
  super
48
48
  end
49
49
  # }}}
@@ -102,7 +102,8 @@ class Stats < Core
102
102
  # {{{ execute
103
103
  def execute
104
104
  str = ""
105
- nodes = self.get_stats_nodes.sort_node(nodes)
105
+ nodes = self.get_stats_nodes
106
+ nodes = self.sort_node(nodes)
106
107
  threads = self.get_stats_threads
107
108
  nodes.each do |hostname_port,data|
108
109
  ipaddr, port = hostname_port.split(":", 2)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flare-tools
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - kgws