bard-rake 0.22.1 → 0.23.1
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 +4 -1
- 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: 3a4cd031df1cd55f1d80a9391ad9f6d38fa4a9ffdbb1a03a15eb859460b354a3
|
4
|
+
data.tar.gz: eb94409e18156b0c0e24c6cef3aa16eda3486564e583b4da520db4f80259ebb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9625ffc88f3162feb6a904a815e9bf40f6f85ba1f85521d88eaffab273449f10d17c1f8e764205d5fa9e123652d9fc4e3a29b42c076d5585f5d86c76b02d8809
|
7
|
+
data.tar.gz: 90003bcf6707b2d416e98216b080d707a26fb173bf824cf3822a4ea93b56915d7778c23658658c11a2b9fbc05edf5cfaa2b1ce5769f4123bd9edeb5f86a5c93b
|
data/bard-rake.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "backhoe"
|
2
|
+
require "bard-backup"
|
2
3
|
|
3
4
|
namespace :db do
|
4
5
|
desc "Dump the current database to db/data.sql.gz"
|
@@ -13,7 +14,9 @@ namespace :db do
|
|
13
14
|
|
14
15
|
task :backup => :environment do
|
15
16
|
project_name = File.basename(Dir.getwd)
|
16
|
-
|
17
|
+
config = Rails.application.credentials.bard_backup
|
18
|
+
s3_path = config.delete(:s3_path) || "bard-backup/#{project_name}"
|
19
|
+
Bard::Backup.call s3_path, **config
|
17
20
|
end
|
18
21
|
|
19
22
|
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.23.1
|
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-07-22 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
|