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 +4 -4
- data/install_files/.github/workflows/deploy.yml +26 -0
- data/lib/bard/version.rb +1 -1
- data/lib/bard.rb +6 -3
- metadata +4 -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
|
@@ -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
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
|
@@ -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.
|
183
|
+
rubygems_version: 3.5.3
|
183
184
|
signing_key:
|
184
185
|
specification_version: 4
|
185
186
|
summary: CLI to automate common development tasks.
|