bard 0.34.0 → 0.35.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 +4 -4
- data/bin/bard +1 -1
- data/lib/bard.rb +4 -1
- data/lib/bard/capistrano.rb +6 -2
- data/lib/bard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c9447c0a4ff1a48db56189050712905cbe95963
|
4
|
+
data.tar.gz: 947d5f652d3770a95f88ed98a5a5243d9d995d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a6cc23425f11824a9e970da29077ca104738f34c7218253a4c56c067465fc2ed04c3786923e837012061cb88a472fe26dd35bc23c9e27d04496f11f046f4c5f
|
7
|
+
data.tar.gz: e36710a5376a22c84120f0343d73ce928c22dd05a006a5725f4c8163a2e21d41a9afb0f319becd201a8bd0fb50a76a807c63a7c569c7d5dc2d85e4e21fe4e5c6
|
data/bin/bard
CHANGED
data/lib/bard.rb
CHANGED
@@ -128,7 +128,10 @@ class Bard::CLI < Thor
|
|
128
128
|
desc "ssh [TO=production]", "logs into the specified server via SSH"
|
129
129
|
def ssh to="production"
|
130
130
|
if to == "gubs"
|
131
|
-
|
131
|
+
command = "exec $SHELL"
|
132
|
+
command = "cd Sites/#{project_name} && #{command}" unless options["home"]
|
133
|
+
command = %(ssh -t gubito@gubs.pagekite.me 'bash -l -c "cd vagrant && exec vagrant ssh -c\\"#{command}\\""')
|
134
|
+
exec command
|
132
135
|
else
|
133
136
|
exec "cap _2.5.10_ ssh ROLES=#{to}#{" NOCD=1" if options["home"]}"
|
134
137
|
end
|
data/lib/bard/capistrano.rb
CHANGED
@@ -10,6 +10,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
10
10
|
set :application, File.basename(Dir.pwd)
|
11
11
|
|
12
12
|
role :staging, "www@staging.botandrose.com:22022"
|
13
|
+
role :ci, "jenkins@ci.botandrose.com:22022"
|
14
|
+
|
13
15
|
set :asset_paths, []
|
14
16
|
|
15
17
|
namespace "data" do
|
@@ -78,8 +80,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
78
80
|
|
79
81
|
desc "log in via ssh"
|
80
82
|
task :ssh do
|
81
|
-
|
82
|
-
|
83
|
+
role = ENV['ROLES'].to_sym
|
84
|
+
path = role == :ci ? "jobs/#{application}/workspace" : application
|
85
|
+
uri = URI.parse("ssh://#{roles[role].first.to_s}")
|
86
|
+
exec "ssh -t #{"-p#{uri.port} " if uri.port}#{uri.user}@#{uri.host} '#{"cd #{path} && " unless ENV['NOCD']}exec $SHELL -l'"
|
83
87
|
end
|
84
88
|
|
85
89
|
desc "download latest test coverage information from CI"
|
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.35.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-
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|