bard-rake 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/rake/db_dump_load.rb +8 -6
- data/lib/bard/rake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6230fa41268f6965c795febc54d591cf53820fffecbd0e64ab64cd8b480542e3
|
4
|
+
data.tar.gz: 1e75b815ae49430c0f493277ee70b4f09ef68e980db11816964c2e7bc504ed6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e39ca1660aaf5dabf1f5610c614717c29f1ed3bf7b0cc1b4c25e8f587defdb7f644867ab54fed3ee13413efcc4922f0535f8b99be3eb7a77dd12a4c684feff9e
|
7
|
+
data.tar.gz: 97f87860d2e46c5b7083bf9867ddd76a8a97518e080ab8e991e3a4f49e94a7d0c8404b1a166e0aded339e039a35008ea4a7a593a336412660e703d218ad2e132
|
@@ -2,14 +2,16 @@ require "backhoe"
|
|
2
2
|
require "bard-backup"
|
3
3
|
|
4
4
|
namespace :db do
|
5
|
-
desc "Dump the current database to db/data.sql.gz"
|
6
|
-
task :dump => :environment do
|
7
|
-
|
5
|
+
desc "Dump the current database to supplied path (default: db/data.sql.gz)"
|
6
|
+
task :dump, [:path] => :environment do |_, args|
|
7
|
+
args.with_defaults(path: "db/data.sql.gz")
|
8
|
+
Backhoe.dump args.path
|
8
9
|
end
|
9
10
|
|
10
|
-
desc "Load the db/data.sql
|
11
|
-
task :load => :environment do
|
12
|
-
|
11
|
+
desc "Load the supplied path (default: db/data.sql.gz) into the current database."
|
12
|
+
task :load, [:path] => :environment do |_, args|
|
13
|
+
args.with_defaults(path: "db/data.sql.gz")
|
14
|
+
Backhoe.load args.path, drop_and_create: true
|
13
15
|
end
|
14
16
|
|
15
17
|
task :backup => :environment do
|
data/lib/bard/rake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|