Skip to content

Commit

Permalink
fix #161
Browse files Browse the repository at this point in the history
  • Loading branch information
d4be4st committed Jan 24, 2015
1 parent bddaa58 commit c5ac167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mina/ssh_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module SshHelpers
def ssh(cmd, options={})
require 'shellwords'

binding.pry
cmd.unshift("export #{env_vars}") if env_vars?
cmd = cmd.join("\n") if cmd.is_a?(Array)
script = Shellwords.escape(cmd)

Expand Down Expand Up @@ -53,7 +55,6 @@ def ssh_command
args << " -p #{port}" if port?
args << " -A" if forward_agent?
args << " #{ssh_options}" if ssh_options?
args << " export #{env_vars}" if env_vars?
args << " -t"
"ssh #{args}"
end
Expand Down
1 change: 1 addition & 0 deletions mina.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Gem::Specification.new do |s|
s.add_dependency "rake"
s.add_dependency "open4", "~> 1.3.4"
s.add_development_dependency "rspec", "~> 3.0.0"
s.add_development_dependency "pry-debugger"
end

0 comments on commit c5ac167

Please sign in to comment.