bard 0.57.0 → 0.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/version.rb +1 -1
- data/lib/bard.rb +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec1a5bcbd8b152ccc72b55a93301567f5e412c4dc5c3d23b247b490bf29f2fa
|
4
|
+
data.tar.gz: 8eccda32ab7e8f9948c49041d1bcccda7937eeb4a84d04f5531f2a9d52470baa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5addafcaa1d4841dceac9aea355f84dc0637e930e85928dabd9f1e0cf4d0edebfa863a91a98035a327bce1c34a22123ec9c19c1ef4b55759982eeb5bd87c9e35
|
7
|
+
data.tar.gz: 8b964f9e5461e4dd9424579ca811d3f90111406c2ddcb0087875938f76b07c0d85d294263e74e88bbec311d9cba086e617dc59d8d2f1b1eb1bf135415de56ab9
|
data/lib/bard/version.rb
CHANGED
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
|
17
|
-
|
18
|
-
|
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.
|
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-
|
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.
|
183
|
+
rubygems_version: 3.5.3
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: CLI to automate common development tasks.
|