bard 0.34.0 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af89341f13435bad3293c1ea129bd1f37b95ce0b
4
- data.tar.gz: 4417f0eb7e8e995a3452f725c2e594441d0452e3
3
+ metadata.gz: 8c9447c0a4ff1a48db56189050712905cbe95963
4
+ data.tar.gz: 947d5f652d3770a95f88ed98a5a5243d9d995d79
5
5
  SHA512:
6
- metadata.gz: 5fe7f4c6f052d2484062c5e72020c8433c0030360d80974ee9670f4cbb9abb86432844d7b8c0ea5398b49c7f529ead9c6af868f8c57e4c155698fa6a1bfa42fc
7
- data.tar.gz: fe8edf3865fcf9d295dca9c4a6c4ad3b0e07ecab5b43c4697a018d22843c48ebab1d90af1c0348243238369e7f5d16bff187183d9a9484bea5ec4dae029803d1
6
+ metadata.gz: 2a6cc23425f11824a9e970da29077ca104738f34c7218253a4c56c067465fc2ed04c3786923e837012061cb88a472fe26dd35bc23c9e27d04496f11f046f4c5f
7
+ data.tar.gz: e36710a5376a22c84120f0343d73ce928c22dd05a006a5725f4c8163a2e21d41a9afb0f319becd201a8bd0fb50a76a807c63a7c569c7d5dc2d85e4e21fe4e5c6
data/bin/bard CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "rubygems"
3
- require File.dirname(__FILE__) + "/../lib/bard"
3
+ require_relative "../lib/bard"
4
4
  Bard::CLI.start ARGV
5
5
 
@@ -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
- exec %(ssh -t gubito@gubs.pagekite.me 'cd vagrant && exec vagrant ssh -c"#{"cd Sites/#{project_name} && " unless options["home"]}exec $SHELL"')
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
@@ -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
- uri = URI.parse("ssh://#{roles[ENV['ROLES'].to_sym].first.to_s}")
82
- exec "ssh -t #{"-p#{uri.port} " if uri.port}#{uri.user}@#{uri.host} '#{"cd #{application} && " unless ENV['NOCD']}exec $SHELL -l'"
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"
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.34.0"
2
+ VERSION = "0.35.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.34.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-07-08 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor