bard 0.33.0 → 0.34.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: b1df41454cd4b61d8d45dc761755b8d58dcdae5c
4
- data.tar.gz: 9d0257fa9d586fdc9ae378c884e8e40aec470ef7
3
+ metadata.gz: af89341f13435bad3293c1ea129bd1f37b95ce0b
4
+ data.tar.gz: 4417f0eb7e8e995a3452f725c2e594441d0452e3
5
5
  SHA512:
6
- metadata.gz: d062e0d8c1d5581422cc54a8a46d9feec856ecd34b5d36c7a505d9d31654550bf204a62f182270b7d1271c7011fea956a768fcab7ca36d19d0affa1b9b36ca32
7
- data.tar.gz: c19d74c8754c4dddee1deaf1027f4ccc49727b49b9a0e9ede63c1565f97a094a176836ddadae3b72faa7b1ec08469f0d6f4bfd28b53cd8a24b79e85f1da66d22
6
+ metadata.gz: 5fe7f4c6f052d2484062c5e72020c8433c0030360d80974ee9670f4cbb9abb86432844d7b8c0ea5398b49c7f529ead9c6af868f8c57e4c155698fa6a1bfa42fc
7
+ data.tar.gz: fe8edf3865fcf9d295dca9c4a6c4ad3b0e07ecab5b43c4697a018d22843c48ebab1d90af1c0348243238369e7f5d16bff187183d9a9484bea5ec4dae029803d1
@@ -78,8 +78,8 @@ Capistrano::Configuration.instance(:must_exist).load do
78
78
 
79
79
  desc "log in via ssh"
80
80
  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} && exec $SHELL -l'"
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
83
  end
84
84
 
85
85
  desc "download latest test coverage information from CI"
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.33.0"
2
+ VERSION = "0.34.0"
3
3
  end
4
4
 
data/lib/bard.rb CHANGED
@@ -124,9 +124,14 @@ class Bard::CLI < Thor
124
124
  end
125
125
  end
126
126
 
127
+ method_options %w( home ) => :boolean
127
128
  desc "ssh [TO=production]", "logs into the specified server via SSH"
128
129
  def ssh to="production"
129
- exec "cap _2.5.10_ ssh ROLES=#{to}"
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"')
132
+ else
133
+ exec "cap _2.5.10_ ssh ROLES=#{to}#{" NOCD=1" if options["home"]}"
134
+ end
130
135
  end
131
136
 
132
137
  desc "install", "copies bin/setup and bin/ci scripts into current project."
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.33.0
4
+ version: 0.34.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-04-04 00:00:00.000000000 Z
11
+ date: 2018-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor