bard-rake 0.23.1 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a4cd031df1cd55f1d80a9391ad9f6d38fa4a9ffdbb1a03a15eb859460b354a3
4
- data.tar.gz: eb94409e18156b0c0e24c6cef3aa16eda3486564e583b4da520db4f80259ebb1
3
+ metadata.gz: 6230fa41268f6965c795febc54d591cf53820fffecbd0e64ab64cd8b480542e3
4
+ data.tar.gz: 1e75b815ae49430c0f493277ee70b4f09ef68e980db11816964c2e7bc504ed6e
5
5
  SHA512:
6
- metadata.gz: 9625ffc88f3162feb6a904a815e9bf40f6f85ba1f85521d88eaffab273449f10d17c1f8e764205d5fa9e123652d9fc4e3a29b42c076d5585f5d86c76b02d8809
7
- data.tar.gz: 90003bcf6707b2d416e98216b080d707a26fb173bf824cf3822a4ea93b56915d7778c23658658c11a2b9fbc05edf5cfaa2b1ce5769f4123bd9edeb5f86a5c93b
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
- 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
8
9
  end
9
10
 
10
- desc "Load the db/data.sql data into the current database."
11
- task :load => :environment do
12
- 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
13
15
  end
14
16
 
15
17
  task :backup => :environment do
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  module Rake
3
- VERSION = "0.23.1"
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.1
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-07-22 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