bard 0.35.0 → 0.36.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c9447c0a4ff1a48db56189050712905cbe95963
4
- data.tar.gz: 947d5f652d3770a95f88ed98a5a5243d9d995d79
3
+ metadata.gz: 68ede9423f7eee1d55c8a6861a76f31df85b5d05
4
+ data.tar.gz: e33da2dbdcd378aa371760ccae3067a7d3294df3
5
5
  SHA512:
6
- metadata.gz: 2a6cc23425f11824a9e970da29077ca104738f34c7218253a4c56c067465fc2ed04c3786923e837012061cb88a472fe26dd35bc23c9e27d04496f11f046f4c5f
7
- data.tar.gz: e36710a5376a22c84120f0343d73ce928c22dd05a006a5725f4c8163a2e21d41a9afb0f319becd201a8bd0fb50a76a807c63a7c569c7d5dc2d85e4e21fe4e5c6
6
+ metadata.gz: ae576a0f5a6569049a5aaae56896be053f40849946c8f7d15c97e5fa15321bcc55913d8af8dab6dc3ae2455225f9c496f87d5837cf23c80129760bea58c02a53
7
+ data.tar.gz: fc2eeddbcace176829383f421f166bd5d0b721b5f3f5454f0c68e5e516a3d765d94de674344749f6deae6ed0d326ea9fbf47180e6f934bca38c472d5f9df8850
@@ -1 +1 @@
1
- ruby-2.2.6
1
+ ruby-2.4.3
@@ -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
 
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.35.0"
2
+ VERSION = "0.36.0"
3
3
  end
4
4
 
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.35.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: 2018-09-18 00:00:00.000000000 Z
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.4.8
229
+ rubygems_version: 2.6.14
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: CLI to automate common development tasks.