bard-rake 0.23.0 → 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/bard-rake.gemspec +1 -0
- data/lib/bard/rake/db_dump_load.rb +10 -7
- data/lib/bard/rake/version.rb +1 -1
- metadata +16 -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
|
data/bard-rake.gemspec
CHANGED
@@ -1,21 +1,24 @@
|
|
1
1
|
require "backhoe"
|
2
|
+
require "bard-backup"
|
2
3
|
|
3
4
|
namespace :db do
|
4
|
-
desc "Dump the current database to db/data.sql.gz"
|
5
|
-
task :dump => :environment do
|
6
|
-
|
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
|
7
9
|
end
|
8
10
|
|
9
|
-
desc "Load the db/data.sql
|
10
|
-
task :load => :environment do
|
11
|
-
|
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
|
12
15
|
end
|
13
16
|
|
14
17
|
task :backup => :environment do
|
15
18
|
project_name = File.basename(Dir.getwd)
|
16
19
|
config = Rails.application.credentials.bard_backup
|
17
20
|
s3_path = config.delete(:s3_path) || "bard-backup/#{project_name}"
|
18
|
-
|
21
|
+
Bard::Backup.call s3_path, **config
|
19
22
|
end
|
20
23
|
|
21
24
|
task "drop:current" => :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
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.6.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bard-backup
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: railties
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|