bard 1.0.8 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/install_files/.github/workflows/ci.yml +1 -1
- data/lib/bard/cli/install.rb +4 -4
- data/lib/bard/cli/open.rb +10 -1
- data/lib/bard/provision/mysql.rb +1 -1
- 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: ea1c7399cff6b2a09c2c5a69ceda9ee34926bb6992736ad28d27ac79809d63bb
|
4
|
+
data.tar.gz: f059eaab39a0e8b1e95890a17607e033c6b427781f51e4a4343025d6eab5ca8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d247f23ceb37bebe9f6ed99484623031fa8605c9b3dbed7222145bead70a7c0bb5b54da0efa0fdfcf9d3f53e6a0afe38480801a0d30afc43f94f61705a3a163
|
7
|
+
data.tar.gz: bd3b7ceeadc1e983bc8785bf3d83c5c32a7c9fee8773441025cedb94ab95d64a99cd8ea54fb6a1879921d73ec541d02aeadc8d014e1d44be21274a02c0d13320
|
data/lib/bard/cli/install.rb
CHANGED
@@ -4,10 +4,10 @@ module Bard::CLI::Install
|
|
4
4
|
|
5
5
|
desc "install", "copies bin/setup and bin/ci scripts into current project."
|
6
6
|
def install
|
7
|
-
install_files_path = File.expand_path(File.join(__dir__, "
|
8
|
-
|
9
|
-
|
10
|
-
system "cp -R #{
|
7
|
+
install_files_path = File.expand_path(File.join(__dir__, "../../../install_files"))
|
8
|
+
|
9
|
+
system "cp -R #{install_files_path}/* bin/"
|
10
|
+
system "cp -R #{install_files_path}/.github ./"
|
11
11
|
end
|
12
12
|
|
13
13
|
end
|
data/lib/bard/cli/open.rb
CHANGED
@@ -4,9 +4,18 @@ module Bard::CLI::Open
|
|
4
4
|
|
5
5
|
desc "open [server=production]", "opens the url in the web browser."
|
6
6
|
def open server=:production
|
7
|
-
exec "xdg-open #{
|
7
|
+
exec "xdg-open #{open_url server}"
|
8
8
|
end
|
9
9
|
|
10
|
+
private
|
11
|
+
|
12
|
+
def open_url server
|
13
|
+
if server.to_sym == :ci
|
14
|
+
"https://github.com/botandrosedesign/#{project_name}/actions/workflows/ci.yml"
|
15
|
+
else
|
16
|
+
config[server].ping.first
|
17
|
+
end
|
18
|
+
end
|
10
19
|
end
|
11
20
|
end
|
12
21
|
end
|
data/lib/bard/provision/mysql.rb
CHANGED
@@ -15,7 +15,7 @@ class Bard::Provision::MySQL < Bard::Provision
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def mysql_responding?
|
18
|
-
provision_server.run "sudo
|
18
|
+
provision_server.run "sudo systemctl is-active --quiet mysql", home: true, quiet: true
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
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: 1.
|
4
|
+
version: 1.1.1
|
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-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|