bard 1.9.2 → 1.9.4
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/lib/bard/cli/deploy.rb +0 -1
- data/lib/bard/cli/stage.rb +0 -1
- data/lib/bard/config.rb +4 -0
- data/lib/bard/deploy_strategy.rb +3 -0
- data/lib/bard/plugin.rb +1 -0
- data/lib/bard/provision/apt.rb +1 -1
- data/lib/bard/provision/mysql.rb +2 -2
- data/lib/bard/version.rb +1 -1
- data/spec/bard/config_spec.rb +16 -0
- data/spec/bard/provision/apt_spec.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: e057184a78e7652f2dd8f899644f90c6ffc619884536faf6a55a8bbe1378dac2
|
|
4
|
+
data.tar.gz: 52c07bf3dbf8ef0197b53ea966ef6c38dd6dd5d64e507a4339da9dcca7e0ed02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1bcfc4132c2e0ece74c4f9ef7ab69e27863ad7b80dfa7c0c372f7553304393561f9d70c2337242af58575d12d53971bd69769893e412260d3a5b4fada122003
|
|
7
|
+
data.tar.gz: c20547f052a4104ac93d84b6044041d5be5567fe2b28cf0fb8241c38193f2a6298f9586e1a8639b3a52aef428d7c8a55130610b0b075acf5a25cd239e99a672c
|
data/lib/bard/cli/deploy.rb
CHANGED
|
@@ -79,7 +79,6 @@ module Bard::CLI::Deploy
|
|
|
79
79
|
# Use deployment strategy for v2.0 Targets, or fallback for v1.x Servers
|
|
80
80
|
target = config[to]
|
|
81
81
|
if target.respond_to?(:deploy_strategy) && target.deploy_strategy
|
|
82
|
-
require "bard/deploy_strategy/#{target.deploy_strategy}"
|
|
83
82
|
strategy = target.deploy_strategy_instance
|
|
84
83
|
strategy.deploy
|
|
85
84
|
elsif target.respond_to?(:github_pages) && target.github_pages
|
data/lib/bard/cli/stage.rb
CHANGED
data/lib/bard/config.rb
CHANGED
data/lib/bard/deploy_strategy.rb
CHANGED
data/lib/bard/plugin.rb
CHANGED
data/lib/bard/provision/apt.rb
CHANGED
|
@@ -7,7 +7,7 @@ class Bard::Provision::Apt < Bard::Provision
|
|
|
7
7
|
%(echo "\\$nrconf{restart} = \\"a\\";" | sudo tee /etc/needrestart/conf.d/90-autorestart.conf),
|
|
8
8
|
"sudo apt-get update -y",
|
|
9
9
|
"sudo apt-get upgrade -y",
|
|
10
|
-
"sudo apt-get install -y curl",
|
|
10
|
+
"sudo apt-get install -y curl build-essential",
|
|
11
11
|
].join("; "), home: true
|
|
12
12
|
|
|
13
13
|
puts " ✓"
|
data/lib/bard/provision/mysql.rb
CHANGED
|
@@ -7,8 +7,8 @@ class Bard::Provision::MySQL < Bard::Provision
|
|
|
7
7
|
print " Installing,"
|
|
8
8
|
provision_server.run! [
|
|
9
9
|
"sudo apt-get install -y mysql-server",
|
|
10
|
-
%
|
|
11
|
-
%
|
|
10
|
+
%{sudo mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '' PASSWORD EXPIRE NEVER; FLUSH PRIVILEGES;"},
|
|
11
|
+
%{mysql -uroot -e "UPDATE mysql.user SET password_lifetime = NULL WHERE user = 'root' AND host = 'localhost';"},
|
|
12
12
|
].join("; "), home: true
|
|
13
13
|
end
|
|
14
14
|
|
data/lib/bard/version.rb
CHANGED
data/spec/bard/config_spec.rb
CHANGED
|
@@ -160,6 +160,22 @@ describe Bard::Config do
|
|
|
160
160
|
end
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
context "with remove_target" do
|
|
164
|
+
subject { described_class.new("tracker", source: <<~SOURCE) }
|
|
165
|
+
remove_target :staging
|
|
166
|
+
target :staging do
|
|
167
|
+
ssh "deploy@new-host.com"
|
|
168
|
+
end
|
|
169
|
+
SOURCE
|
|
170
|
+
|
|
171
|
+
it "replaces the default with a fresh target" do
|
|
172
|
+
staging = subject[:staging]
|
|
173
|
+
expect(staging).to be_a(Bard::Target)
|
|
174
|
+
expect(staging.ssh.to_s).to eq "deploy@new-host.com"
|
|
175
|
+
expect(staging.ping).to eq ["https://new-host.com"]
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
163
179
|
context "with github_pages directive" do
|
|
164
180
|
subject { described_class.new("test", source: "github_pages 'example.com'") }
|
|
165
181
|
|
|
@@ -20,7 +20,7 @@ describe Bard::Provision::Apt do
|
|
|
20
20
|
%(echo "\\$nrconf{restart} = \\"a\\";" | sudo tee /etc/needrestart/conf.d/90-autorestart.conf),
|
|
21
21
|
"sudo apt-get update -y",
|
|
22
22
|
"sudo apt-get upgrade -y",
|
|
23
|
-
"sudo apt-get install -y curl"
|
|
23
|
+
"sudo apt-get install -y curl build-essential"
|
|
24
24
|
].join("; ")
|
|
25
25
|
|
|
26
26
|
expect(provision_server).to receive(:run!).with(expected_commands, home: true)
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-02-
|
|
10
|
+
date: 2026-02-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: thor
|