bard 0.56.0 → 0.58.0

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: e3317e259bb381214d5b61c3813055bdd55c2be030d9867e7910fcfa91a5177d
4
- data.tar.gz: 5e11367f99e7f86889f9302a61d41720f6cf987f11c342389a65971a687f6b58
3
+ metadata.gz: bec1a5bcbd8b152ccc72b55a93301567f5e412c4dc5c3d23b247b490bf29f2fa
4
+ data.tar.gz: 8eccda32ab7e8f9948c49041d1bcccda7937eeb4a84d04f5531f2a9d52470baa
5
5
  SHA512:
6
- metadata.gz: 938fd14dd007599afa2d35e6f12bc687bd7dd95e66e49eb972819b4a6dedc34222e8cac61b8dc4248e24373c8749efc4f9f18b6db00298922fc93aa41f6618fb
7
- data.tar.gz: 2502c3f75458d951ce17dae65b53b1ad1e222f9638f6d8c9efd9baf2d40929ea398793c823a502c9be6830b90a199bf24d0ec468c3e3044a28c6c7b696e29973
6
+ metadata.gz: 5addafcaa1d4841dceac9aea355f84dc0637e930e85928dabd9f1e0cf4d0edebfa863a91a98035a327bce1c34a22123ec9c19c1ef4b55759982eeb5bd87c9e35
7
+ data.tar.gz: 8b964f9e5461e4dd9424579ca811d3f90111406c2ddcb0087875938f76b07c0d85d294263e74e88bbec311d9cba086e617dc59d8d2f1b1eb1bf135415de56ab9
@@ -0,0 +1,26 @@
1
+ name: deploy
2
+ on:
3
+ pull_request:
4
+ types:
5
+ - closed
6
+ jobs:
7
+ deploy:
8
+ if: github.event.pull_request.merged == true
9
+ runs-on: ubuntu-20.04
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: ruby/setup-ruby@v1
13
+ with:
14
+ bundler-cache: true
15
+ - name: Install SSH key
16
+ uses: shimataro/ssh-key-action@v2
17
+ with:
18
+ key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
19
+ known_hosts: unnecessary
20
+ config: |
21
+ Host *
22
+ StrictHostKeyChecking no
23
+ UserKnownHostsFile=/dev/null
24
+ - name: deploy
25
+ run: bundle exec bard deploy --skip-ci
26
+
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.56.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.56.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-24 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
@@ -140,6 +140,7 @@ files:
140
140
  - features/support/io.rb
141
141
  - install_files/.github/workflows/cache-ci.yml
142
142
  - install_files/.github/workflows/ci.yml
143
+ - install_files/.github/workflows/deploy.yml
143
144
  - install_files/apt_dependencies.rb
144
145
  - install_files/ci
145
146
  - install_files/setup
@@ -179,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
180
  - !ruby/object:Gem::Version
180
181
  version: '0'
181
182
  requirements: []
182
- rubygems_version: 3.5.4
183
+ rubygems_version: 3.5.3
183
184
  signing_key:
184
185
  specification_version: 4
185
186
  summary: CLI to automate common development tasks.