cap-ssh 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. data/lib/cap-ssh.rb +5 -2
  2. data/lib/cap-ssh/version.rb +1 -1
  3. metadata +1 -1
data/lib/cap-ssh.rb CHANGED
@@ -33,7 +33,9 @@ Capistrano::Configuration.instance(:must_exist).load do
33
33
  server = servers.first
34
34
  end
35
35
 
36
- logger.info "Deploy Directory: #{deploy_to}"
36
+ unless server
37
+ raise Capistrano::CommandError.new("No server defined!")
38
+ end
37
39
 
38
40
  Capistrano::SSH.connection_strategy(server, self) do |host, user, connection_options|
39
41
  start_session(host, user, connection_options)
@@ -52,7 +54,8 @@ Capistrano::Configuration.instance(:must_exist).load do
52
54
  user ? "#{user}@" : nil,
53
55
  host,
54
56
  connection_options[:port] ? ":#{connection_options[:port]}" : nil,
55
- connection_options[:forward_agent] ? " -a" : nil
57
+ connection_options[:forward_agent] ? " -a" : nil,
58
+ " -t 'cd #{current_path}; bash --login'"
56
59
  ].reject(&:nil?).join('')
57
60
  end
58
61
 
@@ -1,5 +1,5 @@
1
1
  module Cap
2
2
  module SSH
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: