insxsync 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/insxsync.iml CHANGED
@@ -15,7 +15,7 @@
15
15
  <orderEntry type="sourceFolder" forTests="false" />
16
16
  <orderEntry type="library" scope="PROVIDED" name="aws-sdk (v1.35.0, ruby-1.9.3-p484) [gem]" level="application" />
17
17
  <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, ruby-1.9.3-p484) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.5.3, ruby-1.9.3-p484) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.1, ruby-1.9.3-p484) [gem]" level="application" />
19
19
  <orderEntry type="library" scope="PROVIDED" name="cucumber (v1.3.10, ruby-1.9.3-p484) [gem]" level="application" />
20
20
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, ruby-1.9.3-p484) [gem]" level="application" />
21
21
  <orderEntry type="library" scope="PROVIDED" name="gherkin (v2.12.2, ruby-1.9.3-p484) [gem]" level="application" />
@@ -26,7 +26,7 @@
26
26
  <orderEntry type="library" scope="PROVIDED" name="multi_test (v0.0.3, ruby-1.9.3-p484) [gem]" level="application" />
27
27
  <orderEntry type="library" scope="PROVIDED" name="mysql (v2.9.1, ruby-1.9.3-p484) [gem]" level="application" />
28
28
  <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.1, ruby-1.9.3-p484) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.1.1, ruby-1.9.3-p484) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, ruby-1.9.3-p484) [gem]" level="application" />
30
30
  <orderEntry type="library" scope="PROVIDED" name="uuidtools (v2.1.4, ruby-1.9.3-p484) [gem]" level="application" />
31
31
  </component>
32
32
  </module>
@@ -1,3 +1,3 @@
1
1
  module InsxSync
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -59,7 +59,7 @@ class SyncPointRestore < ErrorHandlingIface
59
59
 
60
60
  text.gsub!(/params.hostname(\s*)=(\s*)'[^']*'/m, "params.hostname\\1=\\2'85.204.164.82'")
61
61
  text.gsub!(/params.username(\s*)=(\s*)'[^']*'/m, "params.username\\1=\\2'root'")
62
- text.gsub!(/params.password(\s*)=(\s*)'[^']*'/m, "params.password\\1=\\2'3dba6b67837565f146698075d5cd077fc805668c42defbf4e9b13db2eb2163ffWQXcbdGa5kLk4Kte70T66SAR7n7A13WuDsTV8VZuxwE='")
62
+ text.gsub!(/params.password(\s*)=(\s*)'[^']*'/m, "params.password\\1=\\2'd31abedfa226ebaf8c7a06dcbd1cdfa953cc32004c7d5dc9e2c2699c8b959096DjtiK6AV6QD9reCjaNqDA0wzFYkBeDFvcKWdd0rDimY='")
63
63
  text.gsub!(/BucketName(\s*)=(\s*)'[^']*'/m, "BucketName\\1=\\2'my1outsourcing2-bucket'")
64
64
 
65
65
  db_name, db_suffix = text.scan(/params.database\s*=\s*'([^']*?)(db|3[01][^']*|[0-2]\d[^']*)?'/).flatten
@@ -147,7 +147,7 @@ class SyncPointRestore < ErrorHandlingIface
147
147
 
148
148
  text.gsub!(/params.hostname(\s*)=(\s*)''/m, "params.hostname\\1=\\2'85.204.164.82'")
149
149
  text.gsub!(/params.username(\s*)=(\s*)''/m, "params.username\\1=\\2'root'")
150
- text.gsub!(/params.password(\s*)=(\s*)''/m, "params.password\\1=\\2'3dba6b67837565f146698075d5cd077fc805668c42defbf4e9b13db2eb2163ffWQXcbdGa5kLk4Kte70T66SAR7n7A13WuDsTV8VZuxwE='")
150
+ text.gsub!(/params.password(\s*)=(\s*)''/m, "params.password\\1=\\2'd31abedfa226ebaf8c7a06dcbd1cdfa953cc32004c7d5dc9e2c2699c8b959096DjtiK6AV6QD9reCjaNqDA0wzFYkBeDFvcKWdd0rDimY='")
151
151
  text.gsub!(/BucketName(\s*)=(\s*)''/m, "BucketName\\1=\\2'my1outsourcing2-bucket'")
152
152
 
153
153
  db_name, db_suffix = text.scan(/params.database\s*=\s*'([^']*?)(db)?'/).flatten
@@ -191,6 +191,18 @@ class SyncPointRestore < ErrorHandlingIface
191
191
  end
192
192
  File.write(file, text)
193
193
  end
194
+
195
+ Find.find(dest_dir) do |file|
196
+ next if file == "."
197
+ next if file == ".."
198
+ next unless File.directory?(file)
199
+
200
+ dirname = file.scan(/#{dest_dir}\/?(.*)/).flatten[0]
201
+ puts "Dirname: #{dirname}"
202
+ unless dirname =~ /dev.*/
203
+ FileUtils.move(File.join(dest_dir, dirname), File.join(dest_dir, "dev#{dirname}"))
204
+ end
205
+ end
194
206
  end
195
207
 
196
208
  def self.restore_data(sync_point_dir, time)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insxsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-05 00:00:00.000000000 Z
12
+ date: 2014-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -265,4 +265,3 @@ test_files:
265
265
  - test/starmount06feb.sql
266
266
  - test/summacare06feb.sql
267
267
  - test/tem06feb.sql
268
- has_rdoc: