bard 0.57.0 → 0.58.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bard/version.rb +1 -1
  3. data/lib/bard.rb +6 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 185f8659f83ac6f3ddcc4922db94061b58a610d09d1da8bd92de1c30f3be1d3f
4
- data.tar.gz: 2552ea154c16e106b64c2e7b4db26eb1a0dfb92e99d5e158a93cc818620de14b
3
+ metadata.gz: bec1a5bcbd8b152ccc72b55a93301567f5e412c4dc5c3d23b247b490bf29f2fa
4
+ data.tar.gz: 8eccda32ab7e8f9948c49041d1bcccda7937eeb4a84d04f5531f2a9d52470baa
5
5
  SHA512:
6
- metadata.gz: d5db740a15a9b346f96ba6cdf1ba2e82841ef5c9f18fa07d7068a47de6d7b7490cb93388622af030e70471905d0ed58c100b73e9c1105ea17754233cbdfec573
7
- data.tar.gz: a82d8134445429bf9562c47ec4921a52dc32f81082ef82529d5fd97b1ffa2610f317569496ed577525639720f647194f46c87d1f88ac695242e557313ef3d327
6
+ metadata.gz: 5addafcaa1d4841dceac9aea355f84dc0637e930e85928dabd9f1e0cf4d0edebfa863a91a98035a327bce1c34a22123ec9c19c1ef4b55759982eeb5bd87c9e35
7
+ data.tar.gz: 8b964f9e5461e4dd9424579ca811d3f90111406c2ddcb0087875938f76b07c0d85d294263e74e88bbec311d9cba086e617dc59d8d2f1b1eb1bf135415de56ab9
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.57.0"
2
+ VERSION = "0.58.0"
3
3
  end
4
4
 
data/lib/bard.rb CHANGED
@@ -13,9 +13,12 @@ class Bard::CLI < Thor
13
13
  @config = Config.new(project_name, "bard.rb")
14
14
  end
15
15
 
16
- desc "data [FROM=production, TO=local]", "copy database and assets from FROM to TO"
17
- def data(from=nil, to="local")
18
- from ||= @config.servers.key?(:production) ? "production" : "staging"
16
+ desc "data --from=production --to=local", "copy database and assets from from to to"
17
+ method_options %w[from] => :string, %w[to] => :string
18
+ def data
19
+ default_from = @config.servers.key?(:production) ? "production" : "staging"
20
+ from = options.fetch(:from, default_from)
21
+ to = options.fetch(:to, "local")
19
22
  Data.new(self, from, to).call
20
23
  end
21
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.58.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-01-31 00:00:00.000000000 Z
11
+ date: 2024-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.5.4
183
+ rubygems_version: 3.5.3
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: CLI to automate common development tasks.