mdbm_dist_support 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 749abf853f0a52c3b6b375905eba818296046c03
4
- data.tar.gz: 7e53913154bb8656cb8e493151baeeaa926010d8
3
+ metadata.gz: a6dfdc4b1bb7e77d7f1bd59e19665875e8bdae68
4
+ data.tar.gz: 6493d8af86ab34cf51e75c6c8c252edb354e4d86
5
5
  SHA512:
6
- metadata.gz: c20b77295467f24f2b1285afde89b7436d3e0bf8dabee14270dee53bcde03044000c4f4610a4dfa151e068d7dd8d00b85482ab048aeb9d6e4273b67b8301c71c
7
- data.tar.gz: 0644351dae6353334b289be06fcb488a1586efd3dee17391ba27e65d53074806b1e9253efd9a8a70d984be807e8324ed207858f080c08a32594daa644a0690f5
6
+ metadata.gz: 905990e9ae825aaeae11ed6ad9314ea8b8012716a372d5ba899b48732efd8d0f4b3df96f65dcfb0afe20ab3f444a0508e3894c49d62f68ffe9a4d6fa2e524f4d
7
+ data.tar.gz: 8c397766e2ed5d08d305d17b30af54ae1d1cc21ce6bec34f30f11f3f0f330a9025f6fa316578f0e42893537a50a08b1e4e83315ff64fbc35de54fcddb2ab2f70
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mdbm_dist_support (0.2.6)
4
+ mdbm_dist_support (0.2.7)
5
5
  ruby-mdbm (>= 0.0.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -32,11 +32,12 @@ MdbmDistSupport::Distributer.new do |m|
32
32
  m.cmd_gen = :mdbm_store_func
33
33
  m.cmd_rep = '/usr/local/bin/mdbm_replace'
34
34
  m.full_mode = true
35
- m.dist_servers = [
36
- :host => 'remote1', :port => 22, :user => 'foo', :key => '/home/foo/.ssh/id_rsa',
37
- :host => 'remote2', :port => 22, :user => 'hee', :key => '/home/hee/.ssh/id_rsa',
38
- :host => 'remote3', :port => 22, :user => 'hyo', :key => '/home/hyo/.ssh/id_rsa',
39
- ]
35
+ m.dist_servers =
36
+ [
37
+ :host => 'remote1', :port => 22, :user => 'foo', :key => '/home/foo/.ssh/id_rsa',
38
+ :host => 'remote2', :port => 22, :user => 'hee', :key => '/home/hee/.ssh/id_rsa',
39
+ :host => 'remote3', :port => 22, :user => 'hyo', :key => '/home/hyo/.ssh/id_rsa',
40
+ ]
40
41
  end.run_dist
41
42
  ```
42
43
  #### settings @run_dist
@@ -57,11 +58,11 @@ end.run_dist
57
58
  require 'mdbm_dist_support'
58
59
 
59
60
  puts "1111111\tFUGAFUGA"
60
- inc_key = '2017-09-09 11:11:11'
61
+ inc_val = '2017-09-09 11:11:11'
61
62
 
62
63
  MdbmDistSupport::Distributer.new do |m|
63
64
  m.meta_path = '/tmp/hoge_meta.mdbm'
64
- end.run_print_after(inc_key)
65
+ end.run_print_after(inc_val)
65
66
  ```
66
67
  #### settings @run_print_after
67
68
  |name|value|
@@ -72,6 +73,9 @@ end.run_print_after(inc_key)
72
73
  * [mdbm](https://github.com/yahoo/mdbm)
73
74
 
74
75
  ## Generate mdbm command module
76
+
77
+ If you want to generate other than `String:String` kvsets, you should make theese commands.
78
+
75
79
  * int64_str_mdbm
76
80
  * int32_str_mdbm
77
81
  * int32_int64_mdbm
@@ -62,8 +62,8 @@ module MdbmDistSupport
62
62
 
63
63
  def dist
64
64
  @dist_servers.each do |s|
65
- cmd_exec %(scp -P #{s[:port]} -i #{s[:key]} #{@local_path} #{s[:user]}@#{s[:host]}:#{@dist_path}.tmp)
66
- cmd_exec %(ssh -p #{s[:port]} -i #{s[:key]} #{s[:user]}@#{s[:host]} \" #{@cmd_rep} #{@dist_path} #{@dist_path}.tmp && chmod 777 #{@dist_path}\")
65
+ cmd_exec %(scp -P #{s['por't]} -i #{s['key']} #{@local_path} #{s['user']}@#{s['host']}:#{@dist_path}.tmp)
66
+ cmd_exec %(ssh -p #{s['port']} -i #{s['key']} #{s['user']}@#{s['host']} \" #{@cmd_rep} #{@dist_path} #{@dist_path}.tmp && chmod 777 #{@dist_path}\")
67
67
  end
68
68
  end
69
69
 
@@ -1,3 +1,3 @@
1
1
  module MdbmDistSupport
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdbm_dist_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MichinaoShimizu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2017-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler