cassback 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/cassback +6 -0
- data/lib/cassback/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a56101b04d121e226b2afc4e2a9ca26ab05bb224
|
|
4
|
+
data.tar.gz: 2f2b3f756bf5ae528f833bcf577022301c5629bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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'],
|
data/lib/cassback/version.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|