poring_backup 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/poring_backup/databases/postgresql.rb +7 -3
- data/lib/poring_backup/version.rb +1 -1
- data/test/dummy/config/initializers/poring_backup.rb +3 -3
- data/test/dummy/log/backup_development.log +20 -0
- data/test/dummy/log/backup_test.log +6 -0
- data/test/dummy/log/test.log +185 -0
- data/test/dummy/spec/lib/databases/postgresql_spec.rb +8 -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: 55877323d31c82a29489546836f6dff31b06932d
|
4
|
+
data.tar.gz: 17be911e99d7c6a7f0dc707c4304476a9aa21d8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 412ec66eb4d6b615699c9de77b14e10d913eb831aeeec886f3f01fa4955b14de0bad727810655f38c5a59640be7cc11f025f624748f87e3c47f456c885638be7
|
7
|
+
data.tar.gz: db33e0ea6814c61f70a13a5bb22bb656b85fb078a9e2969c2f0fec7f8f016c8c74a2412cbe7c7d635a456ec6d6ca2b4a32705065a07587df5ebd71ebf2ad9a97
|
@@ -50,11 +50,13 @@ module PoringBackup
|
|
50
50
|
@username = name
|
51
51
|
end
|
52
52
|
|
53
|
-
def password password
|
53
|
+
def password password=nil
|
54
54
|
@password = password
|
55
55
|
end
|
56
56
|
|
57
57
|
def db_dump
|
58
|
+
"sudo " +
|
59
|
+
"#{password_option}" +
|
58
60
|
"pg_dump #{connection_options} #{general_options} #{db_name}"
|
59
61
|
end
|
60
62
|
|
@@ -68,11 +70,13 @@ module PoringBackup
|
|
68
70
|
options << "--host=#{@host || 'localhost'}"
|
69
71
|
options << " --port=#{@port}" if @port
|
70
72
|
options << " --username=#{@username}" if @username
|
71
|
-
# options << " --no-password"
|
72
|
-
# options << " --password"
|
73
73
|
options
|
74
74
|
end
|
75
75
|
|
76
|
+
def password_option
|
77
|
+
"PGPASSWORD=#{ Shellwords.escape(@password) } " if @password
|
78
|
+
end
|
79
|
+
|
76
80
|
def general_options
|
77
81
|
options = ''
|
78
82
|
options << "--file=#{tmp_file_path}"
|
@@ -14,12 +14,12 @@ PoringBackup.config 'PiYa Server' do
|
|
14
14
|
database :PostgreSQL do
|
15
15
|
database 'onebox_core_development'
|
16
16
|
username 'Mac'
|
17
|
-
# password
|
17
|
+
# password
|
18
18
|
end
|
19
19
|
|
20
20
|
store_with :S3 do
|
21
|
-
access_key_id '
|
22
|
-
secret_access_key '
|
21
|
+
access_key_id 'AKIAJKKDUOBX5Z2J5RBQ'
|
22
|
+
secret_access_key 'xWJXoxHLbSG8Fzx5HD99Ot18YL7gcqTwipsyEati'
|
23
23
|
bucket 'oneboxcore-dev'
|
24
24
|
region 'ap-southeast-1'
|
25
25
|
path 'backups'
|
@@ -154,3 +154,23 @@ DEBUG PoringBackup::Log : clear tmp directory
|
|
154
154
|
INFO PoringBackup::Log : --------- Notifier --------
|
155
155
|
INFO PoringBackup::Log : Slack notify : success
|
156
156
|
INFO PoringBackup::Log : PoringBackup Done
|
157
|
+
INFO PoringBackup::Log : PoringBackup Start...
|
158
|
+
INFO PoringBackup::Log : --------- Backup ----------
|
159
|
+
INFO PoringBackup::Log : PostgreSQL backup processing
|
160
|
+
INFO PoringBackup::Log : success
|
161
|
+
INFO PoringBackup::Log : finished
|
162
|
+
INFO PoringBackup::Log : ---------- Store ----------
|
163
|
+
INFO PoringBackup::Log : S3 processing
|
164
|
+
INFO PoringBackup::Log : PoringBackup Start...
|
165
|
+
INFO PoringBackup::Log : --------- Backup ----------
|
166
|
+
INFO PoringBackup::Log : PostgreSQL backup processing
|
167
|
+
INFO PoringBackup::Log : success
|
168
|
+
INFO PoringBackup::Log : finished
|
169
|
+
INFO PoringBackup::Log : ---------- Store ----------
|
170
|
+
INFO PoringBackup::Log : S3 processing
|
171
|
+
INFO PoringBackup::Log : uploaded: backups/db_backups/2015.07.13.11.14.29/onebox_core_development.pgsql
|
172
|
+
INFO PoringBackup::Log : finished
|
173
|
+
DEBUG PoringBackup::Log : clear tmp directory
|
174
|
+
INFO PoringBackup::Log : --------- Notifier --------
|
175
|
+
INFO PoringBackup::Log : Slack notify : success
|
176
|
+
INFO PoringBackup::Log : PoringBackup Done
|
@@ -56,3 +56,9 @@ DEBUG PoringBackup::Log : clear tmp directory
|
|
56
56
|
INFO PoringBackup::Log : Slack notify : success
|
57
57
|
WARN PoringBackup::Log : Slack notify : failed : Invalid channel specified
|
58
58
|
DEBUG PoringBackup::Log : clear tmp directory
|
59
|
+
INFO PoringBackup::Log : Slack notify : success
|
60
|
+
WARN PoringBackup::Log : Slack notify : failed : Invalid channel specified
|
61
|
+
DEBUG PoringBackup::Log : clear tmp directory
|
62
|
+
INFO PoringBackup::Log : Slack notify : success
|
63
|
+
WARN PoringBackup::Log : Slack notify : failed : Invalid channel specified
|
64
|
+
DEBUG PoringBackup::Log : clear tmp directory
|
data/test/dummy/log/test.log
CHANGED
@@ -2427,3 +2427,188 @@
|
|
2427
2427
|
[1m[35m (0.1ms)[0m ROLLBACK
|
2428
2428
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2429
2429
|
[1m[35m (0.1ms)[0m ROLLBACK
|
2430
|
+
[1m[36mActiveRecord::SchemaMigration Load (27.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2431
|
+
[1m[36m (121.3ms)[0m [1mDROP DATABASE IF EXISTS "poring_backup_test"[0m
|
2432
|
+
[1m[35m (362.8ms)[0m CREATE DATABASE "poring_backup_test" ENCODING = 'unicode' TEMPLATE = "template0"
|
2433
|
+
[1m[36mSQL (2.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2434
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
2435
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2436
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
2437
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2438
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2439
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2440
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2441
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2442
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2443
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2444
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2445
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2446
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2447
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2448
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2449
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2450
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2451
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2452
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2453
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2454
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2455
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2456
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2457
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2458
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2459
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2460
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2461
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2462
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2463
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2464
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2465
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2466
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2467
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2468
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2469
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2470
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2471
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2472
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2473
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2474
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2475
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2476
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2477
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2478
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2479
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2480
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2481
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2482
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2483
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2484
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2485
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2486
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2487
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2488
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2489
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2490
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2491
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2492
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2493
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2494
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2495
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2496
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2497
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2498
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2499
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2500
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2501
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2502
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2503
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2504
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2505
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2506
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2507
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2508
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2509
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2510
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2511
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2512
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2513
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2514
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2515
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2516
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2517
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2518
|
+
[1m[36m (115.6ms)[0m [1mDROP DATABASE IF EXISTS "poring_backup_test"[0m
|
2519
|
+
[1m[35m (364.5ms)[0m CREATE DATABASE "poring_backup_test" ENCODING = 'unicode' TEMPLATE = "template0"
|
2520
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2521
|
+
[1m[35m (3.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
2522
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2523
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
2524
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2525
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2526
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2527
|
+
[1m[36m (112.6ms)[0m [1mDROP DATABASE IF EXISTS "poring_backup_test"[0m
|
2528
|
+
[1m[35m (317.8ms)[0m CREATE DATABASE "poring_backup_test" ENCODING = 'unicode' TEMPLATE = "template0"
|
2529
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2530
|
+
[1m[35m (3.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
2531
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2532
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
2533
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2534
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2535
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2536
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2537
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2538
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2540
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2541
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2542
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2543
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2544
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2545
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2546
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2547
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2548
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2550
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2551
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2552
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2553
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2554
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2555
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2556
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2557
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2558
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2559
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2560
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2561
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2562
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2563
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2564
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2565
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2566
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2567
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2568
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2569
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2570
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2571
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2572
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2573
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2574
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2575
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2576
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2577
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2578
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2579
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2580
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2581
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2582
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2583
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2584
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2585
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2586
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2587
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2588
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2589
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2590
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2591
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2592
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2593
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2594
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2595
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2596
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2597
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2598
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2599
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2600
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2601
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2602
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2603
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2604
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2605
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2606
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2607
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2608
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2609
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2610
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2611
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2612
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2613
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2614
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
@@ -33,7 +33,9 @@ module PoringBackup
|
|
33
33
|
context "#db_dump gets command for db dump" do
|
34
34
|
it "full command" do
|
35
35
|
dump_cmd = pg.db_dump
|
36
|
-
expect_cmd = '
|
36
|
+
expect_cmd = 'sudo'
|
37
|
+
expect_cmd << ' PGPASSWORD=new_password_name'
|
38
|
+
expect_cmd << ' pg_dump'
|
37
39
|
expect_cmd << " --host=new_host_name"
|
38
40
|
expect_cmd << " --port=new_port_name"
|
39
41
|
expect_cmd << " --username=new_username_name"
|
@@ -58,6 +60,11 @@ module PoringBackup
|
|
58
60
|
dump_cmd = pg.db_dump
|
59
61
|
expect(dump_cmd).not_to match /--username/
|
60
62
|
end
|
63
|
+
it "password" do
|
64
|
+
pg.password(nil)
|
65
|
+
dump_cmd = pg.db_dump
|
66
|
+
expect(dump_cmd).not_to match /PGPASSWORD=/
|
67
|
+
end
|
61
68
|
end
|
62
69
|
end
|
63
70
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poring_backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PiYa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|