cassback 0.1.9 → 0.1.10

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: 493265549ae69ac85882959fd0751368fcf1e940
4
- data.tar.gz: 1f7e6550297e0451c35c62a52b8002883d343e81
3
+ metadata.gz: a56101b04d121e226b2afc4e2a9ca26ab05bb224
4
+ data.tar.gz: 2f2b3f756bf5ae528f833bcf577022301c5629bc
5
5
  SHA512:
6
- metadata.gz: b03e231ff64cf1b6ef5d72c6bf28aef338ecab1f90fac64d75c2a6e811d914edb9df4d83fb959bf2383d22ee0e5b118dc2a02c76e60626a12dfa8b2323b4eb36
7
- data.tar.gz: cf5ba0d94bdda1a1cbf490e6d54a8413fa28e000e61b3d4fabe55528ba690390c8e55376a4a82f2d51ef12216052516834ed8e412c169533f6422adc45914583
6
+ metadata.gz: 44c812e05f8125e101133358eda5f46eeac988cb03362ae8e16b8eaa344c33822ba134ef2d3241a89164846219b7943387fa05818c65f3f1265257407121b6f5
7
+ data.tar.gz: 513d85d6cb6570ccfa808b9ab8592a784d39f33bf972bddcda065801388122db43b60a9c37618331ee8bab4c9eb696ddaa3ad4471fd5f209f5c5494395c2bea5
data/bin/cassback CHANGED
@@ -47,6 +47,7 @@ command_line_config = {
47
47
 
48
48
  # Default options
49
49
  options = {
50
+ 'guardfile' => '/tmp/cassback.guardfile',
50
51
  'cassandra' => {
51
52
  'config' => '/etc/cassandra/conf/cassandra.yaml',
52
53
  'disk_threshold' => 75
@@ -160,6 +161,11 @@ if action.nil?
160
161
  end
161
162
 
162
163
  begin
164
+ # If guard file exists, stop there
165
+ if File.exist?(options['guardfile'])
166
+ raise('Can not continue while guard file is present')
167
+ end
168
+
163
169
  # Create the Hadoop object
164
170
  hadoop = Hadoop.new(host: options['hadoop']['hostname'], port: options['hadoop']['port'],
165
171
  base_dir: options['hadoop']['directory'], retry_times: options['hadoop']['retryTimes'],
@@ -1,3 +1,3 @@
1
1
  module Cassback
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.1.10'.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.9
4
+ version: 0.1.10
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-05-18 00:00:00.000000000 Z
12
+ date: 2016-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler