flare-tools 0.4.5.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/.gitignore +24 -0
  2. data/.travis.yml +15 -0
  3. data/Gemfile +9 -0
  4. data/Gemfile.lock +28 -0
  5. data/History.txt +5 -0
  6. data/Makefile +25 -0
  7. data/README.txt +2 -2
  8. data/Rakefile +36 -34
  9. data/flare-tools.gemspec +26 -0
  10. data/lib/flare/entity/server.rb +4 -0
  11. data/lib/flare/tools.rb +3 -3
  12. data/lib/flare/tools/cli.rb +1 -0
  13. data/lib/flare/tools/cli/activate.rb +19 -13
  14. data/lib/flare/tools/cli/balance.rb +15 -8
  15. data/lib/flare/tools/cli/deploy.rb +53 -49
  16. data/lib/flare/tools/cli/dispatch.rb +101 -0
  17. data/lib/flare/tools/cli/down.rb +19 -14
  18. data/lib/flare/tools/cli/dump.rb +19 -14
  19. data/lib/flare/tools/cli/dumpkey.rb +21 -16
  20. data/lib/flare/tools/cli/flare_admin.rb +16 -72
  21. data/lib/flare/tools/cli/flare_argv0.rb +7 -51
  22. data/lib/flare/tools/cli/index.rb +10 -7
  23. data/lib/flare/tools/cli/index_server_config.rb +94 -0
  24. data/lib/flare/tools/cli/list.rb +14 -12
  25. data/lib/flare/tools/cli/master.rb +18 -12
  26. data/lib/flare/tools/cli/option.rb +55 -0
  27. data/lib/flare/tools/cli/part.rb +13 -12
  28. data/lib/flare/tools/cli/ping.rb +11 -13
  29. data/lib/flare/tools/cli/reconstruct.rb +22 -15
  30. data/lib/flare/tools/cli/remove.rb +20 -17
  31. data/lib/flare/tools/cli/restore.rb +20 -20
  32. data/lib/flare/tools/cli/slave.rb +20 -14
  33. data/lib/flare/tools/cli/stats.rb +171 -118
  34. data/lib/flare/tools/cli/sub_command.rb +16 -5
  35. data/lib/flare/tools/cli/summary.rb +12 -10
  36. data/lib/flare/tools/cli/threads.rb +15 -9
  37. data/lib/flare/tools/cli/verify.rb +20 -18
  38. data/lib/flare/tools/cluster.rb +3 -2
  39. data/lib/flare/util/constant.rb +3 -0
  40. data/lib/flare/util/pretty_table.rb +8 -0
  41. data/lib/flare/util/pretty_table/column.rb +41 -0
  42. data/lib/flare/util/pretty_table/row.rb +29 -0
  43. data/lib/flare/util/pretty_table/table.rb +37 -0
  44. data/package/Rakefile +44 -0
  45. data/package/flare-tools/Makefile +23 -0
  46. data/package/flare-tools/debian/changelog +135 -0
  47. data/package/flare-tools/debian/compat +1 -0
  48. data/package/flare-tools/debian/control +20 -0
  49. data/package/flare-tools/debian/copyright +35 -0
  50. data/package/flare-tools/debian/dirs +2 -0
  51. data/{.gemtest → package/flare-tools/debian/docs} +0 -0
  52. data/package/flare-tools/debian/rules +125 -0
  53. data/test/{test/experimental → experimental}/cache_test.rb +0 -0
  54. data/test/{test/experimental → experimental}/key_distribution_test.rb +0 -0
  55. data/test/{test/experimental → experimental}/keychecker_test.rb +0 -0
  56. data/test/{test/experimental → experimental}/list_test.rb +0 -0
  57. data/test/{test/extra → extra}/replication_test.rb +0 -0
  58. data/test/{test/integration → integration}/cli_test.rb +9 -7
  59. data/test/{test/integration → integration}/dump_expired_test.rb +4 -3
  60. data/test/{test/integration → integration}/dump_test.rb +5 -5
  61. data/test/{test/integration → integration}/index_server_test.rb +1 -1
  62. data/test/{test/integration → integration}/node_test.rb +1 -1
  63. data/test/{test/integration → integration}/partition_test.rb +6 -5
  64. data/test/{test/integration → integration}/proxy_test.rb +4 -3
  65. data/test/{test/integration → integration}/stats_test.rb +1 -1
  66. data/test/integration/subcommands.rb +128 -0
  67. data/test/{test/system → system}/flare_admin_test.rb +7 -5
  68. data/test/{test/unit → unit}/bwlimit_test.rb +0 -0
  69. data/test/{test/unit → unit}/cluster_test.rb +1 -1
  70. data/test/{test/unit → unit}/daemon_test.rb +0 -0
  71. data/test/{test/unit → unit}/logger_test.rb +0 -0
  72. data/test/{test/unit → unit}/tools_test.rb +0 -0
  73. data/test/unit/util/pretty_table_test.rb +46 -0
  74. data/test/{test/unit → unit}/util_test.rb +7 -2
  75. metadata +88 -100
  76. data/PostInstall.txt +0 -7
  77. data/lib/flare/tools/cli/cli_util.rb +0 -77
  78. data/lib/flare/util/command_line.rb +0 -79
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
- $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../../lib")
5
+ $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
6
6
 
7
7
  require 'test/unit'
8
8
  require 'flare/tools.rb'
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
- $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../../lib")
5
+ $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
6
6
 
7
7
  require 'test/unit'
8
8
  require 'flare/tools'
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
- $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../../lib")
5
+ $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
6
6
 
7
7
  require 'test/unit'
8
8
  require 'flare/tools'
@@ -92,15 +92,16 @@ class PartitionTest < Test::Unit::TestCase
92
92
  }
93
93
  sleep 1 # XXX
94
94
  @flare_cluster.wait_for_ready
95
+
96
+ @nodes = @node_servers.map {|node| node.open}
97
+ @wait = 0.005
95
98
  @config = {
96
99
  :command => 'dummy',
97
- :index_server_hostname => @flare_cluster.indexname,
98
- :index_server_port => @flare_cluster.indexport,
99
100
  :dry_run => false,
100
101
  :timeout => 10
101
102
  }
102
- @nodes = @node_servers.map {|node| node.open}
103
- @wait = 0.005
103
+ @index_server_hostname = @flare_cluster.indexname
104
+ @index_server_port = @flare_cluster.indexport
104
105
  end
105
106
 
106
107
  def teardown
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
- $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../../lib")
5
+ $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
6
6
 
7
7
  require 'test/unit'
8
8
  require 'flare/tools'
@@ -17,13 +17,14 @@ class ProxyTest < Test::Unit::TestCase
17
17
  @node_servers = ['node1', 'node2', 'node3'].map {|name| @flare_cluster.create_node(name)}
18
18
  sleep 1 # XXX
19
19
  @flare_cluster.wait_for_ready
20
+
20
21
  @config = {
21
22
  :command => 'dummy',
22
- :index_server_hostname => @flare_cluster.indexname,
23
- :index_server_port => @flare_cluster.indexport,
24
23
  :dry_run => false,
25
24
  :timeout => 10
26
25
  }
26
+ @index_server_hostname = @flare_cluster.indexname
27
+ @index_server_port = @flare_cluster.indexport
27
28
  end
28
29
 
29
30
  def teardown
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
- $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../../lib")
5
+ $LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
6
6
 
7
7
  require 'test/unit'
8
8
  require 'flare/tools.rb'
@@ -0,0 +1,128 @@
1
+
2
+ require 'test/unit'
3
+ require 'flare/tools'
4
+ require 'flare/tools/cli'
5
+ require 'flare/test/cluster'
6
+
7
+ module Subcommands
8
+
9
+ S_OK = 0
10
+ S_NG = 1
11
+
12
+ def instantiate(cls, args)
13
+ subc = cls.new
14
+ subc.setup
15
+ subc.optp.parse!(args)
16
+ subc
17
+ end
18
+
19
+ def ping(*args)
20
+ subc = instantiate(Flare::Tools::Cli::Ping, args)
21
+ subc.execute(@config.merge({:command => 'ping'}), args)
22
+ end
23
+
24
+ def list(*args)
25
+ args << "--index-server" << @index_server_hostname
26
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
27
+ subc = instantiate(Flare::Tools::Cli::List, args)
28
+ subc.execute(@config.merge({:command => 'list'}), args)
29
+ end
30
+
31
+ def stats(*args)
32
+ args << "--index-server" << @index_server_hostname
33
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
34
+ subc = instantiate(Flare::Tools::Cli::Stats, args)
35
+ subc.execute(@config.merge({:command => 'stats'}), args)
36
+ end
37
+
38
+ def down(*args)
39
+ args << "--index-server" << @index_server_hostname
40
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
41
+ args << "--force"
42
+ subc = instantiate(Flare::Tools::Cli::Down, args)
43
+ subc.execute(@config.merge({:command => 'down'}), args)
44
+ end
45
+
46
+ def activate(*args)
47
+ args << "--index-server" << @index_server_hostname
48
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
49
+ args << "--force"
50
+ subc = instantiate(Flare::Tools::Cli::Activate, args)
51
+ subc.execute(@config.merge({:command => 'activate'}), args)
52
+ end
53
+
54
+ def slave(*args)
55
+ args << "--index-server" << @index_server_hostname
56
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
57
+ args << "--force"
58
+ subc = instantiate(Flare::Tools::Cli::Slave, args)
59
+ subc.execute(@config.merge({:command => 'slave'}), args)
60
+ end
61
+
62
+ def balance(*args)
63
+ args << "--index-server" << @index_server_hostname
64
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
65
+ args << "--force"
66
+ subc = instantiate(Flare::Tools::Cli::Balance, args)
67
+ subc.execute(@config.merge({:command => 'balance'}), args)
68
+ end
69
+
70
+ def reconstruct(*args)
71
+ args << "--index-server" << @index_server_hostname
72
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
73
+ args << "--force"
74
+ subc = instantiate(Flare::Tools::Cli::Reconstruct, args)
75
+ subc.execute(@config.merge({:command => 'reconstruct'}), args)
76
+ end
77
+
78
+ def index(*args)
79
+ args << "--index-server" << @index_server_hostname
80
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
81
+ subc = instantiate(Flare::Tools::Cli::Index, args)
82
+ subc.execute(@config.merge({:command => 'index'}), args)
83
+ end
84
+
85
+ def remove(*args)
86
+ args << "--index-server" << @index_server_hostname
87
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
88
+ args << "--force"
89
+ subc = instantiate(Flare::Tools::Cli::Remove, args)
90
+ subc.execute(@config.merge({:command => 'remove'}), args)
91
+ end
92
+
93
+ def master(*args)
94
+ args << "--index-server" << @index_server_hostname
95
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
96
+ args << "--force"
97
+ subc = instantiate(Flare::Tools::Cli::Master, args)
98
+ subc.execute(@config.merge({:command => 'master'}), args)
99
+ end
100
+
101
+ def dump(*args)
102
+ args << "--index-server" << @index_server_hostname
103
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
104
+ subc = instantiate(Flare::Tools::Cli::Dump, args)
105
+ subc.execute(@config.merge({:command => 'dump'}), args)
106
+ end
107
+
108
+ def dumpkey(*args)
109
+ args << "--index-server" << @index_server_hostname
110
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
111
+ subc = instantiate(Flare::Tools::Cli::Dumpkey, args)
112
+ subc.execute(@config.merge({:command => 'dumpkey'}), args)
113
+ end
114
+
115
+ def verify(*args)
116
+ args << "--index-server" << @index_server_hostname
117
+ args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
118
+ puts "args: "+args.join(' ')
119
+ subc = instantiate(Flare::Tools::Cli::Verify, args)
120
+ subc.execute(@config.merge({:command => 'verify'}), args)
121
+ end
122
+
123
+ def restore(*args)
124
+ subc = instantiate(Flare::Tools::Cli::Restore, args)
125
+ subc.execute(@config.merge({:command => 'restore'}), args)
126
+ end
127
+
128
+ end
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
- $LOAD_PATH.unshift File.dirname(__FILE__)+"/../lib"
4
+ $LOAD_PATH.unshift File.dirname(__FILE__)+"/../../lib"
5
5
 
6
6
  require 'test/unit'
7
7
  require 'flare/tools'
@@ -10,7 +10,7 @@ require 'flare/test/cluster'
10
10
  ENV['FLARE_INDEX_SERVER'] = nil
11
11
 
12
12
  class FlareAdminTest < Test::Unit::TestCase
13
- Admin = "../bin/flare-admin"
13
+ Admin = "./bin/flare-admin"
14
14
  S_OK = 0
15
15
  S_NG = 1
16
16
 
@@ -30,14 +30,14 @@ class FlareAdminTest < Test::Unit::TestCase
30
30
  end
31
31
 
32
32
  def flare_admin_with_yes arg
33
- cmd = "yes | #{Admin} #{arg}"
33
+ cmd = "yes | ruby #{Admin} #{arg}"
34
34
  puts "> #{cmd}"
35
35
  puts `#{cmd}`
36
36
  $?.exitstatus
37
37
  end
38
38
 
39
39
  def flare_admin arg
40
- cmd = "#{Admin} #{arg}"
40
+ cmd = "ruby #{Admin} #{arg}"
41
41
  puts "> #{cmd}"
42
42
  puts `#{cmd}`
43
43
  $?.exitstatus
@@ -71,7 +71,9 @@ class FlareAdminTest < Test::Unit::TestCase
71
71
  assert_equal(S_NG, $?.exitstatus)
72
72
  flare_admin "list --log-file=''"
73
73
  assert_equal(S_NG, $?.exitstatus)
74
- flare_admin "list #{@opt_index} --dry-run"
74
+ flare_admin_with_yes "down #{@opt_index} --dry-run #{@datanodes[0].hostname}:#{@datanodes[0].port}"
75
+ assert_equal(S_OK, $?.exitstatus)
76
+ flare_admin "list #{@opt_index} --timeout=20"
75
77
  assert_equal(S_OK, $?.exitstatus)
76
78
  end
77
79
 
File without changes
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
- $LOAD_PATH.unshift File.dirname(__FILE__)+"/../lib"
4
+ $LOAD_PATH.unshift File.dirname(__FILE__)+"/../../lib"
5
5
 
6
6
  require 'test/unit'
7
7
  require 'flare/tools/cluster'
File without changes
File without changes
File without changes
@@ -0,0 +1,46 @@
1
+ # -*- coding: utf-8; -*-
2
+
3
+ $LOAD_PATH.unshift File.dirname(__FILE__)+"/../lib"
4
+
5
+ require 'test/unit'
6
+ require 'flare/util/pretty_table'
7
+ class PrettyTableTest < Test::Unit::TestCase
8
+ include Flare::Util::PrettyTable
9
+
10
+ def test_pretty_table
11
+ expect = <<EOF.strip
12
+ abc defghi jklm
13
+ 1 foo_bar_baz 1.11
14
+ 2 foo 0.00
15
+ EOF
16
+ table = Table.new
17
+ row = Row.new
18
+ row.add_column(Column.new('abc'))
19
+ row.add_column(Column.new('defghi'))
20
+ row.add_column(Column.new('jklm'))
21
+ table.add_row(row)
22
+ row = Row.new
23
+ row.add_column(Column.new(1, :align => :right))
24
+ row.add_column(Column.new('foo_bar_baz'))
25
+ row.add_column(Column.new('1.11'))
26
+ table.add_row(row)
27
+ row = Row.new
28
+ row.add_column(Column.new(2, :align => :right))
29
+ row.add_column(Column.new('foo'))
30
+ row.add_column(Column.new('0.00'))
31
+ table.add_row(row)
32
+
33
+ assert_equal(expect, table.prettify)
34
+ end
35
+
36
+ def test_column_separator
37
+ expect = "abc\tdefghi\tjklm"
38
+
39
+ row = Row.new(:separator => "\t")
40
+ row.add_column(Column.new('abc'))
41
+ row.add_column(Column.new('defghi'))
42
+ row.add_column(Column.new('jklm'))
43
+
44
+ assert_equal(expect, row.prettify(0))
45
+ end
46
+ end
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
  # -*- coding: utf-8; -*-
3
3
 
4
- $LOAD_PATH.unshift File.dirname(__FILE__)+"/../lib"
4
+ $LOAD_PATH.unshift File.dirname(__FILE__)+"/../../lib"
5
5
 
6
6
  require 'test/unit'
7
7
  require 'flare/util/result.rb'
@@ -44,9 +44,14 @@ class UtilTest < Test::Unit::TestCase
44
44
  end
45
45
 
46
46
  def test_interruption1
47
- obj = Interruption.new
47
+ _ = Interruption.new
48
+
48
49
  assert_raise InterruptionTestException do
49
50
  Process.kill :INT, Process.pid
51
+
52
+ # sleep needed.
53
+ # https://github.com/ruby/ruby/blob/2ebafed88a665dcaaf4fb58b8c3fd0809db8fa2c/test/ruby/test_signal.rb#L21
54
+ sleep 0.1
50
55
  end
51
56
  end
52
57
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flare-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - kikehara
9
+ - Yuya YAGUCHI
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-03-03 00:00:00.000000000 Z
13
+ date: 2014-10-15 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: log4r
@@ -18,7 +19,7 @@ dependencies:
18
19
  requirements:
19
20
  - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
- version: 1.1.4
22
+ version: 1.1.10
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,23 +27,7 @@ dependencies:
26
27
  requirements:
27
28
  - - ! '>='
28
29
  - !ruby/object:Gem::Version
29
- version: 1.1.4
30
- - !ruby/object:Gem::Dependency
31
- name: zookeeper
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 1.2.6
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 1.2.6
30
+ version: 1.1.10
46
31
  - !ruby/object:Gem::Dependency
47
32
  name: tokyocabinet
48
33
  requirement: !ruby/object:Gem::Requirement
@@ -60,29 +45,13 @@ dependencies:
60
45
  - !ruby/object:Gem::Version
61
46
  version: '1.29'
62
47
  - !ruby/object:Gem::Dependency
63
- name: rdoc
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '4.0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '4.0'
78
- - !ruby/object:Gem::Dependency
79
- name: newgem
48
+ name: bundler
80
49
  requirement: !ruby/object:Gem::Requirement
81
50
  none: false
82
51
  requirements:
83
52
  - - ! '>='
84
53
  - !ruby/object:Gem::Version
85
- version: 1.5.3
54
+ version: '1.6'
86
55
  type: :development
87
56
  prerelease: false
88
57
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,27 +59,28 @@ dependencies:
90
59
  requirements:
91
60
  - - ! '>='
92
61
  - !ruby/object:Gem::Version
93
- version: 1.5.3
62
+ version: '1.6'
94
63
  - !ruby/object:Gem::Dependency
95
- name: hoe
64
+ name: rake
96
65
  requirement: !ruby/object:Gem::Requirement
97
66
  none: false
98
67
  requirements:
99
- - - ~>
68
+ - - ! '>='
100
69
  - !ruby/object:Gem::Version
101
- version: '3.9'
70
+ version: '0'
102
71
  type: :development
103
72
  prerelease: false
104
73
  version_requirements: !ruby/object:Gem::Requirement
105
74
  none: false
106
75
  requirements:
107
- - - ~>
76
+ - - ! '>='
108
77
  - !ruby/object:Gem::Version
109
- version: '3.9'
78
+ version: '0'
110
79
  description: Flare-tools is a collection of tools for Flare distributed key-value
111
80
  store.
112
81
  email:
113
82
  - kiyoshi.ikehara@gree.net
83
+ - yuya.yaguchi@gree.net
114
84
  executables:
115
85
  - flare-admin
116
86
  - flare-argv0
@@ -121,19 +91,17 @@ executables:
121
91
  - flare-stats
122
92
  - flare-zkadmin
123
93
  extensions: []
124
- extra_rdoc_files:
125
- - Flare-tools.txt
126
- - History.txt
127
- - Manifest.txt
128
- - PostInstall.txt
129
- - README.txt
130
- - Tutorial.txt
94
+ extra_rdoc_files: []
131
95
  files:
96
+ - .gitignore
97
+ - .travis.yml
132
98
  - Flare-tools.txt
99
+ - Gemfile
100
+ - Gemfile.lock
133
101
  - History.txt
134
102
  - LICENSE
103
+ - Makefile
135
104
  - Manifest.txt
136
- - PostInstall.txt
137
105
  - README.txt
138
106
  - Rakefile
139
107
  - Tutorial.txt
@@ -145,6 +113,8 @@ files:
145
113
  - bin/flare-ping
146
114
  - bin/flare-stats
147
115
  - bin/flare-zkadmin
116
+ - flare-tools.gemspec
117
+ - lib/flare/entity/server.rb
148
118
  - lib/flare/net/connection.rb
149
119
  - lib/flare/test/cluster.rb
150
120
  - lib/flare/test/daemon.rb
@@ -153,8 +123,8 @@ files:
153
123
  - lib/flare/tools/cli.rb
154
124
  - lib/flare/tools/cli/activate.rb
155
125
  - lib/flare/tools/cli/balance.rb
156
- - lib/flare/tools/cli/cli_util.rb
157
126
  - lib/flare/tools/cli/deploy.rb
127
+ - lib/flare/tools/cli/dispatch.rb
158
128
  - lib/flare/tools/cli/down.rb
159
129
  - lib/flare/tools/cli/dump.rb
160
130
  - lib/flare/tools/cli/dumpkey.rb
@@ -163,8 +133,10 @@ files:
163
133
  - lib/flare/tools/cli/flare_keychecker.rb
164
134
  - lib/flare/tools/cli/flare_zkadmin.rb
165
135
  - lib/flare/tools/cli/index.rb
136
+ - lib/flare/tools/cli/index_server_config.rb
166
137
  - lib/flare/tools/cli/list.rb
167
138
  - lib/flare/tools/cli/master.rb
139
+ - lib/flare/tools/cli/option.rb
168
140
  - lib/flare/tools/cli/part.rb
169
141
  - lib/flare/tools/cli/ping.rb
170
142
  - lib/flare/tools/cli/reconstruct.rb
@@ -185,7 +157,6 @@ files:
185
157
  - lib/flare/tools/zk_util.rb
186
158
  - lib/flare/util.rb
187
159
  - lib/flare/util/bwlimit.rb
188
- - lib/flare/util/command_line.rb
189
160
  - lib/flare/util/conf.rb
190
161
  - lib/flare/util/constant.rb
191
162
  - lib/flare/util/conversion.rb
@@ -200,35 +171,47 @@ files:
200
171
  - lib/flare/util/log4r_logger.rb
201
172
  - lib/flare/util/logger.rb
202
173
  - lib/flare/util/logging.rb
174
+ - lib/flare/util/pretty_table.rb
175
+ - lib/flare/util/pretty_table/column.rb
176
+ - lib/flare/util/pretty_table/row.rb
177
+ - lib/flare/util/pretty_table/table.rb
203
178
  - lib/flare/util/result.rb
204
- - test/test/integration/partition_test.rb
205
- - test/test/integration/index_server_test.rb
206
- - test/test/integration/dump_test.rb
207
- - test/test/integration/proxy_test.rb
208
- - test/test/integration/cli_test.rb
209
- - test/test/integration/stats_test.rb
210
- - test/test/integration/dump_expired_test.rb
211
- - test/test/integration/node_test.rb
212
- - test/test/extra/replication_test.rb
213
- - test/test/experimental/keychecker_test.rb
214
- - test/test/experimental/key_distribution_test.rb
215
- - test/test/experimental/cache_test.rb
216
- - test/test/experimental/list_test.rb
217
- - test/test/unit/util_test.rb
218
- - test/test/unit/bwlimit_test.rb
219
- - test/test/unit/tools_test.rb
220
- - test/test/unit/logger_test.rb
221
- - test/test/unit/cluster_test.rb
222
- - test/test/unit/daemon_test.rb
223
- - test/test/system/flare_admin_test.rb
224
- - .gemtest
179
+ - package/Rakefile
180
+ - package/flare-tools/Makefile
181
+ - package/flare-tools/debian/changelog
182
+ - package/flare-tools/debian/compat
183
+ - package/flare-tools/debian/control
184
+ - package/flare-tools/debian/copyright
185
+ - package/flare-tools/debian/dirs
186
+ - package/flare-tools/debian/docs
187
+ - package/flare-tools/debian/rules
188
+ - test/experimental/cache_test.rb
189
+ - test/experimental/key_distribution_test.rb
190
+ - test/experimental/keychecker_test.rb
191
+ - test/experimental/list_test.rb
192
+ - test/extra/replication_test.rb
193
+ - test/integration/cli_test.rb
194
+ - test/integration/dump_expired_test.rb
195
+ - test/integration/dump_test.rb
196
+ - test/integration/index_server_test.rb
197
+ - test/integration/node_test.rb
198
+ - test/integration/partition_test.rb
199
+ - test/integration/proxy_test.rb
200
+ - test/integration/stats_test.rb
201
+ - test/integration/subcommands.rb
202
+ - test/system/flare_admin_test.rb
203
+ - test/unit/bwlimit_test.rb
204
+ - test/unit/cluster_test.rb
205
+ - test/unit/daemon_test.rb
206
+ - test/unit/logger_test.rb
207
+ - test/unit/tools_test.rb
208
+ - test/unit/util/pretty_table_test.rb
209
+ - test/unit/util_test.rb
225
210
  homepage: http://github.com/gree/flare-tools
226
211
  licenses:
227
212
  - MIT
228
- post_install_message: PostInstall.txt
229
- rdoc_options:
230
- - --main
231
- - README.txt
213
+ post_install_message:
214
+ rdoc_options: []
232
215
  require_paths:
233
216
  - lib
234
217
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -237,6 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
220
  - - ! '>='
238
221
  - !ruby/object:Gem::Version
239
222
  version: '0'
223
+ segments:
224
+ - 0
225
+ hash: 54780071370042886
240
226
  required_rubygems_version: !ruby/object:Gem::Requirement
241
227
  none: false
242
228
  requirements:
@@ -244,29 +230,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
230
  - !ruby/object:Gem::Version
245
231
  version: '0'
246
232
  requirements: []
247
- rubyforge_project: flare-tools
233
+ rubyforge_project:
248
234
  rubygems_version: 1.8.23
249
235
  signing_key:
250
236
  specification_version: 3
251
237
  summary: Management Tools for Flare
252
238
  test_files:
253
- - test/test/integration/partition_test.rb
254
- - test/test/integration/index_server_test.rb
255
- - test/test/integration/dump_test.rb
256
- - test/test/integration/proxy_test.rb
257
- - test/test/integration/cli_test.rb
258
- - test/test/integration/stats_test.rb
259
- - test/test/integration/dump_expired_test.rb
260
- - test/test/integration/node_test.rb
261
- - test/test/extra/replication_test.rb
262
- - test/test/experimental/keychecker_test.rb
263
- - test/test/experimental/key_distribution_test.rb
264
- - test/test/experimental/cache_test.rb
265
- - test/test/experimental/list_test.rb
266
- - test/test/unit/util_test.rb
267
- - test/test/unit/bwlimit_test.rb
268
- - test/test/unit/tools_test.rb
269
- - test/test/unit/logger_test.rb
270
- - test/test/unit/cluster_test.rb
271
- - test/test/unit/daemon_test.rb
272
- - test/test/system/flare_admin_test.rb
239
+ - test/experimental/cache_test.rb
240
+ - test/experimental/key_distribution_test.rb
241
+ - test/experimental/keychecker_test.rb
242
+ - test/experimental/list_test.rb
243
+ - test/extra/replication_test.rb
244
+ - test/integration/cli_test.rb
245
+ - test/integration/dump_expired_test.rb
246
+ - test/integration/dump_test.rb
247
+ - test/integration/index_server_test.rb
248
+ - test/integration/node_test.rb
249
+ - test/integration/partition_test.rb
250
+ - test/integration/proxy_test.rb
251
+ - test/integration/stats_test.rb
252
+ - test/integration/subcommands.rb
253
+ - test/system/flare_admin_test.rb
254
+ - test/unit/bwlimit_test.rb
255
+ - test/unit/cluster_test.rb
256
+ - test/unit/daemon_test.rb
257
+ - test/unit/logger_test.rb
258
+ - test/unit/tools_test.rb
259
+ - test/unit/util/pretty_table_test.rb
260
+ - test/unit/util_test.rb