bard 0.35.0 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/bard.rb +2 -0
- data/lib/bard/capistrano.rb +11 -0
- data/lib/bard/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68ede9423f7eee1d55c8a6861a76f31df85b5d05
|
4
|
+
data.tar.gz: e33da2dbdcd378aa371760ccae3067a7d3294df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae576a0f5a6569049a5aaae56896be053f40849946c8f7d15c97e5fa15321bcc55913d8af8dab6dc3ae2455225f9c496f87d5837cf23c80129760bea58c02a53
|
7
|
+
data.tar.gz: fc2eeddbcace176829383f421f166bd5d0b721b5f3f5454f0c68e5e516a3d765d94de674344749f6deae6ed0d326ea9fbf47180e6f934bca38c472d5f9df8850
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.4.3
|
data/lib/bard.rb
CHANGED
@@ -24,6 +24,7 @@ class Bard::CLI < Thor
|
|
24
24
|
|
25
25
|
run_crucial "git push -u origin #{branch}", true
|
26
26
|
run_crucial "cap _2.5.10_ stage BRANCH=#{branch}", options.verbose?
|
27
|
+
run_crucial "cap _2.5.10_ ping ROLES=staging"
|
27
28
|
|
28
29
|
puts green("Stage Succeeded")
|
29
30
|
end
|
@@ -51,6 +52,7 @@ class Bard::CLI < Thor
|
|
51
52
|
end
|
52
53
|
|
53
54
|
run_crucial "cap _2.5.10_ deploy", options.verbose?
|
55
|
+
run_crucial "cap _2.5.10_ ping ROLES=production"
|
54
56
|
|
55
57
|
puts green("Deploy Succeeded")
|
56
58
|
|
data/lib/bard/capistrano.rb
CHANGED
@@ -78,6 +78,17 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
78
78
|
run "cd #{application} && git fetch && git checkout -f origin/#{branch} && bin/setup", :roles => :staging
|
79
79
|
end
|
80
80
|
|
81
|
+
desc "test app for downtime"
|
82
|
+
task :ping do
|
83
|
+
role = ENV.fetch("ROLES", "production").to_sym
|
84
|
+
uri = URI.parse("ssh://#{roles[role].first.to_s}")
|
85
|
+
command = "curl -sfLI #{uri.hostname} 2>&1 1>/dev/null"
|
86
|
+
unless system command
|
87
|
+
puts "#{uri.hostname} is down!"
|
88
|
+
exit 1
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
81
92
|
desc "log in via ssh"
|
82
93
|
task :ssh do
|
83
94
|
role = ENV['ROLES'].to_sym
|
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: 0.
|
4
|
+
version: 0.36.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:
|
11
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.6.14
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: CLI to automate common development tasks.
|