cassback 0.1.7 → 0.1.8

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: 1b107b26f3da7063045152d59e04f0e4b393eacd
4
- data.tar.gz: f234d6292937383a03d69bf32b70c20997d8e693
3
+ metadata.gz: d1b84e227b8ac885872dca30ef87343ef497d6b1
4
+ data.tar.gz: b2f0923cc561e07b14c3c316ae86aa091bdd829f
5
5
  SHA512:
6
- metadata.gz: cce6bf488cd7e741525f59cce0347e107a972365312d12f0772f6aebd75cfbc2fdaf20d95f3fddb39405877054bb11da488be1080877adb5ebe6fd40a67beecc
7
- data.tar.gz: aff6febf30585a2fb0e3fccb9d368dd558df4970989f1673ef5fe3f26c1fceed77d282a4e81b3a3540c500884b645295388c74cf86ac5d77e39f757d6d3f2dcf
6
+ metadata.gz: f899bacdc79ae008b9e471cb2d5835dbf31140a68adde2166efed9461f0cbf9ae006f84a43436d68dbaa2781e601e902f012d2e8d6956cd8048bd14bf1722ad0
7
+ data.tar.gz: 8719a219fb94a1ce7337b388c460add9b3e7ead073b3e15d1d8eec3780a65004ff403f994687c1e48a5c1cdd0c12c86eb351379999df63006aff224c20a23c94
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- require 'logger'
2
+
3
+ require 'syslog/logger'
3
4
  require 'optparse'
4
5
  require 'yaml'
5
6
 
@@ -15,13 +16,11 @@ class ::Hash
15
16
  end
16
17
  end
17
18
 
18
- # Create a Ruby logger with time/size rotation that logs both to file and console.
19
- two_mb = 2 * 1024 * 1024
20
- logger = Logger.new('cassback.log', 'weekly', two_mb)
19
+ # Create a Ruby logger that logs both to syslog and console.
20
+ logger = Syslog::Logger.new 'cassback'
21
21
  logger.formatter = proc do |severity, datetime, progname, msg|
22
- entry = "[#{datetime}] #{severity} #{progname} : #{msg}\n"
23
- print entry
24
- entry
22
+ print "[#{datetime}] #{severity} #{progname} : #{msg}\n"
23
+ "#{msg}"
25
24
  end
26
25
 
27
26
  begin
@@ -1,3 +1,3 @@
1
1
  module Cassback
2
- VERSION = '0.1.7'.freeze
2
+ VERSION = '0.1.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Van Hollebeke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-27 00:00:00.000000000 Z
12
+ date: 2016-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 2.4.8
180
+ rubygems_version: 2.5.2
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Cassandra backup to HDFS.
@@ -185,3 +185,4 @@ test_files:
185
185
  - test/cassandra_stub.rb
186
186
  - test/hadoop_stub.rb
187
187
  - test/test_backuptool.rb
188
+ has_rdoc: