cassandra-utils 0.3.1.pre.beta.1 → 0.3.1.pre.beta.2

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: 4e551a8b992a71ae2b24834faef52d77f61137eb
4
- data.tar.gz: 002209ac50837ebd0e4a542b86bcdb442b2073be
3
+ metadata.gz: 94d0331381282c7c67a8e68fe000c133fcc20a66
4
+ data.tar.gz: 33e805f9ad276022a1e3208c7ecdf80ab7e31aa5
5
5
  SHA512:
6
- metadata.gz: b2f744c06e90c15931aba8bd6a9bfdabd4dfef6f5469e83ccc681928f6bcbde06067e0ada434c774b8df9482af046c795d74708eb337186e89296822cf98af67
7
- data.tar.gz: 982bb9611cc120b08493f160b07dcda482cda4022c361126d1999c63ab066babd4f94cd409388ea2219b19cf6788f5386ed8feec2d0e421086db96f9a0114e3c
6
+ metadata.gz: 452ae745de7456ebc34e80cd088b158e1f057e7ec48c3eb1ee48f43b34d40d35b52afce0dbc2be7bec1d0bdc547da33e6df3ef842a02b701c35c84be7720987b
7
+ data.tar.gz: c63af287b133eccee07715dae90bed1f5a03e2cdc8ef7ead19dabd00957c8034d75266c53aed333c50b2e70707e6602a501aab0e14ca3c8e83fbad4b6fd2131e
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ PATH
11
11
  remote: .
12
12
  specs:
13
13
  cassandra-utils (0.0.1)
14
- daemon_runner (~> 0.2)
14
+ daemon_runner (~> 0.4)
15
15
  dogstatsd-ruby (~> 1.6)
16
16
  mixlib-shellout (~> 2.2)
17
17
  thor (~> 0.19)
@@ -19,7 +19,7 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- daemon_runner (0.4.1)
22
+ daemon_runner (0.4.2)
23
23
  diplomat (~> 1.0)
24
24
  logging (~> 2.1)
25
25
  mixlib-shellout (~> 2.2)
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "mixlib-shellout", "~> 2.2"
22
22
  spec.add_dependency "dogstatsd-ruby", "~> 1.6"
23
23
  spec.add_dependency "thor", "~> 0.19"
24
- spec.add_dependency "daemon_runner", "~> 0.2"
24
+ spec.add_dependency "daemon_runner", "~> 0.4"
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.12"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -25,6 +25,7 @@ module Cassandra
25
25
  @token_cache_path ||= File.join(Dir.tmpdir, 'autoclean-tokens.json')
26
26
  @service_name = options[:cleanup_service_name]
27
27
  @lock_count = options[:cleanup_lock_count]
28
+ @logger = options[:logger]
28
29
  end
29
30
 
30
31
  # Schedule the Cassandra cleanup process to run daily
@@ -200,7 +201,7 @@ module Cassandra
200
201
  logger.debug "Found nodetool cleanup process #{pid} already running"
201
202
  Utils::Statsd.new('cassandra.cleanup.running').push!(1)
202
203
  end
203
- pid = exec_nodetool_cleanup
204
+ pid = exec_nodetool_cleanup if pid.nil?
204
205
  if pid
205
206
  logger.debug "Started nodetool cleanup process #{pid}"
206
207
  Utils::Statsd.new('cassandra.cleanup.running').push!(1)
@@ -1,4 +1,4 @@
1
- require 'mixlib/shellout'
1
+ require 'daemon_runner/shell_out'
2
2
 
3
3
  module Cassandra
4
4
  module Utils
@@ -15,7 +15,7 @@ module Cassandra
15
15
  end
16
16
 
17
17
  def runner
18
- @command ||= Mixlib::ShellOut.new(command, :cwd => cwd, :timeout => timeout)
18
+ @command ||= DaemonRunner::ShellOut.new(command, :cwd => cwd, :timeout => timeout)
19
19
  end
20
20
 
21
21
  def output
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandra-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.pre.beta.1
4
+ version: 0.3.1.pre.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.2'
61
+ version: '0.4'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.2'
68
+ version: '0.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement