taps 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/taps/config.rb +2 -0
- data/lib/taps/operation.rb +6 -0
- metadata +3 -3
data/VERSION.yml
CHANGED
data/lib/taps/config.rb
CHANGED
data/lib/taps/operation.rb
CHANGED
@@ -238,11 +238,14 @@ class Pull < Operation
|
|
238
238
|
def pull_schema
|
239
239
|
puts "Receiving schema"
|
240
240
|
|
241
|
+
progress = ProgressBar.new('Schema', tables.size)
|
241
242
|
tables.each do |table_name, count|
|
242
243
|
schema_data = session_resource['pull/schema'].post({:table_name => table_name}, http_headers).to_s
|
243
244
|
output = Taps::Utils.load_schema(database_url, schema_data)
|
244
245
|
puts output if output
|
246
|
+
progress.inc(1)
|
245
247
|
end
|
248
|
+
progress.finish
|
246
249
|
end
|
247
250
|
|
248
251
|
def pull_data
|
@@ -423,10 +426,13 @@ class Push < Operation
|
|
423
426
|
def push_schema
|
424
427
|
puts "Sending schema"
|
425
428
|
|
429
|
+
progress = ProgressBar.new('Schema', tables.size)
|
426
430
|
tables.each do |table, count|
|
427
431
|
schema_data = Taps::Utils.schema_bin(:dump_table, database_url, table)
|
428
432
|
session_resource['push/schema'].post(schema_data, http_headers)
|
433
|
+
progress.inc(1)
|
429
434
|
end
|
435
|
+
progress.finish
|
430
436
|
end
|
431
437
|
|
432
438
|
def push_reset_sequences
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 6
|
9
|
+
version: 0.3.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ricardo Chimal, Jr.
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-18 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|