bard 0.43.0 → 0.43.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard.rb +2 -1
- data/lib/bard/config.rb +8 -2
- data/lib/bard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1d5d1d2e6e5f6d0773fa26f60fb920572df272d623a6371eeeb831853dec153
|
4
|
+
data.tar.gz: e2e30089f78b9ff60cc5467c17756d11b7f55d25275dc00517b83c15afa86f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddda49134dab1cb9f5dd0351e44f597223a21cba04b2b1af2a4cd49f820139a25c6689646295cddc3a15a1682da5ddc04ea52d338decb411f1a0da021f5830be
|
7
|
+
data.tar.gz: 67d6b0b1d6b55ed39acdbdd19176eb96ea6b58aaffa68a2858f50f443c82ca23eba62269881af321720099b8e0281da990a2ff49847fa4a20da26d9efa35f84b
|
data/lib/bard.rb
CHANGED
@@ -14,7 +14,8 @@ class Bard::CLI < Thor
|
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "data [FROM=production, TO=local]", "copy database and assets from FROM to TO"
|
17
|
-
def data(from=
|
17
|
+
def data(from=nil, to="local")
|
18
|
+
from ||= @config.servers.key?(:production) ? "production" : "staging"
|
18
19
|
Data.new(self, from, to).call
|
19
20
|
end
|
20
21
|
|
data/lib/bard/config.rb
CHANGED
@@ -77,8 +77,14 @@ class Bard::CLI < Thor
|
|
77
77
|
"http://#{uri.host}"
|
78
78
|
end
|
79
79
|
|
80
|
-
def path
|
81
|
-
|
80
|
+
def path(*args)
|
81
|
+
if args.length == 1
|
82
|
+
self.path = args.first
|
83
|
+
elsif args.length == 0
|
84
|
+
super() || project_name
|
85
|
+
else
|
86
|
+
raise ArgumentError
|
87
|
+
end
|
82
88
|
end
|
83
89
|
end
|
84
90
|
end
|
data/lib/bard/version.rb
CHANGED
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.43.
|
4
|
+
version: 0.43.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|