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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d2474f2bb81c20829b7ca09fff60ecfce5591b079eabc5b278f84264a85af47
4
- data.tar.gz: a2a64f425e92a13bd2fb13a8e31cf26c6515eb382612b5bb805e626be2df7447
3
+ metadata.gz: d1d5d1d2e6e5f6d0773fa26f60fb920572df272d623a6371eeeb831853dec153
4
+ data.tar.gz: e2e30089f78b9ff60cc5467c17756d11b7f55d25275dc00517b83c15afa86f28
5
5
  SHA512:
6
- metadata.gz: e6d10bdee8db0cd11175325e41ae74f34543f20be0b5dd6f37ef52e51c67ffad1690d7a608df746d811846044c3627efee8328ae2b6c6cea5db45122db8e58fd
7
- data.tar.gz: 05e02cc97bc25bb51a6794effd9a29ad466fab9909193028b3d6151c51cb0e20224639a40d6732c86b0307084743a9a113aae5a6f61eff6ff954d8779edf9b2e
6
+ metadata.gz: ddda49134dab1cb9f5dd0351e44f597223a21cba04b2b1af2a4cd49f820139a25c6689646295cddc3a15a1682da5ddc04ea52d338decb411f1a0da021f5830be
7
+ data.tar.gz: 67d6b0b1d6b55ed39acdbdd19176eb96ea6b58aaffa68a2858f50f443c82ca23eba62269881af321720099b8e0281da990a2ff49847fa4a20da26d9efa35f84b
@@ -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="production", to="local")
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
 
@@ -77,8 +77,14 @@ class Bard::CLI < Thor
77
77
  "http://#{uri.host}"
78
78
  end
79
79
 
80
- def path
81
- super || project_name
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
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.43.0"
2
+ VERSION = "0.43.2"
3
3
  end
4
4
 
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.0
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: 2020-04-09 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor