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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1f5c7b796463f6d5316f212930fe3046d02749602f4b0aa2e4201dff3170da7
4
- data.tar.gz: 54a77dfb0956ae49f0165805e08f8c12e4a42aaa1326689aa4f0f56669ee5cc0
3
+ metadata.gz: 6230fa41268f6965c795febc54d591cf53820fffecbd0e64ab64cd8b480542e3
4
+ data.tar.gz: 1e75b815ae49430c0f493277ee70b4f09ef68e980db11816964c2e7bc504ed6e
5
5
  SHA512:
6
- metadata.gz: 331e2c6d45e9751e4dcba2ab3fccb0bf0b50157d628be14f5633667ed9a3de799340e8a56d937986df06de1663bccaa101e0021cb8a59a8a6f64c4e8f3c1520e
7
- data.tar.gz: 23a7cb95b57dd2bda64cd9ea8d40e4262a0edb2e3c107772eaf6240e3cb0effd7b2a4966e6a88a449700fec8c930cb664fc13256484b4317f295f909a65895ad
6
+ metadata.gz: e39ca1660aaf5dabf1f5610c614717c29f1ed3bf7b0cc1b4c25e8f587defdb7f644867ab54fed3ee13413efcc4922f0535f8b99be3eb7a77dd12a4c684feff9e
7
+ data.tar.gz: 97f87860d2e46c5b7083bf9867ddd76a8a97518e080ab8e991e3a4f49e94a7d0c8404b1a166e0aded339e039a35008ea4a7a593a336412660e703d218ad2e132
data/bard-rake.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "rake"
21
21
  spec.add_dependency "backhoe", ">=0.6.0"
22
+ spec.add_dependency "bard-backup"
22
23
  spec.add_dependency "railties"
23
24
 
24
25
  spec.add_development_dependency "bundler"
@@ -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
- Backhoe.dump "db/data.sql.gz"
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 data into the current database."
10
- task :load => :environment do
11
- Backhoe.load "db/data.sql.gz", drop_and_create: true
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
- Backhoe.backup s3_path, **config
21
+ Bard::Backup.call s3_path, **config
19
22
  end
20
23
 
21
24
  task "drop:current" => :environment do
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  module Rake
3
- VERSION = "0.23.0"
3
+ VERSION = "0.24.0"
4
4
  end
5
5
  end
6
6
 
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.23.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-06-23 00:00:00.000000000 Z
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