elasticDynamoDb 1.0.6 → 1.0.7
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 +8 -8
- data/bin/elasticDynamoDb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NmRlMTkwNTBmZTE3N2E3YmM1NmExOTNhYTU4MDBiMzIyMjVhNDlhNg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NDBlODYxZWNjNGIwYzdjOTE2MjdlYzViNGFlYTVmZTBiMWQ4MTk3Yw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Y2NlNzNiMmE4NDgxOGNlZjcwZTA3ZjgyOWI0ZWNmZDBhMTkxMjhiODJjMjBl
|
|
10
|
+
NTczNjEwMGRjODUyMGU3Zjk2ZDdlODcwN2VmZjY3ZDhlZjM1ZmQ2OTU4MzM0
|
|
11
|
+
OTY1YTc2Zjg4NGJhOWRlY2I3OWMyOTg0ZDQ1ODdmNjAyNmZhNmY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZTRkMjM3YTRjZjVkM2NkMzRkNzgwZTMwYTlmMDY1OGY4NzFkZjRjNjdlODc2
|
|
14
|
+
ZjliZWE2Y2M2ZjU0MWFhNWY2YWY5ZTZkN2ViMjczZjYzYmU2YTAxNTA5MmVj
|
|
15
|
+
M2M0NGUwOTQzNjYzOWUwOTkzMmJkOTgyNTBmZDU0YjY4MWU0YzE=
|
data/bin/elasticDynamoDb
CHANGED
|
@@ -25,7 +25,8 @@ class ElasticDynamoDb < Thor
|
|
|
25
25
|
@@working_dir = options[:working_dir]
|
|
26
26
|
@@bkp_folder = "#{File.expand_path(@@working_dir)}/ElasticDynamoDb/dynamodb_config_backups"
|
|
27
27
|
@@log_file = "#{File.expand_path(@@working_dir)}/ElasticDynamoDb/change.log"
|
|
28
|
-
|
|
28
|
+
config_file_name = Pathname.new(@@config_file).basename.to_s
|
|
29
|
+
@@original_config_file = "#{@@bkp_folder}/#{config_file_name}-#{@@timestamp}"
|
|
29
30
|
|
|
30
31
|
FileUtils.mkdir_p "#{File.expand_path(@@working_dir)}/ElasticDynamoDb/dynamodb_config_backups"
|
|
31
32
|
|
|
@@ -179,7 +180,7 @@ private
|
|
|
179
180
|
`mkdir -p #{@@bkp_folder} && cp #{@@config_file} #{@@original_config_file}` if @@config_file
|
|
180
181
|
say "backup file created: #{@@original_config_file}"
|
|
181
182
|
end
|
|
182
|
-
|
|
183
|
+
|
|
183
184
|
def save_file(str)
|
|
184
185
|
File.open(@@config_file, 'w') do |file|
|
|
185
186
|
file.write str
|