]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
ssh: modified yet again how ssh is used. pin to a newer version of capistrano that...
authorelijah <elijah@riseup.net>
Tue, 20 May 2014 21:19:43 +0000 (14:19 -0700)
committerelijah <elijah@riseup.net>
Tue, 20 May 2014 21:19:43 +0000 (14:19 -0700)
leap_cli.gemspec
lib/leap_cli/util/remote_command.rb

index a2f197de42295a76f12bdfe4718d3f993ecaa5e2..829309a0d65d6b9449fc416edb895baf89b8d8a6 100644 (file)
@@ -56,7 +56,7 @@ spec = Gem::Specification.new do |s|
   s.add_runtime_dependency('tee')
 
   # network gems
-  s.add_runtime_dependency('capistrano', '~> 2.13.5')
+  s.add_runtime_dependency('capistrano', '~> 2.15.5')
   #s.add_runtime_dependency('supply_drop')
   # ^^ currently vendored
 
index 07db4160c29bfd9d9c0bfa0a77753652f2f0ba17..6972bbb4e28d256640a92de23cf6b2febd0d24b6 100644 (file)
@@ -50,8 +50,7 @@ module LeapCli; module Util; module RemoteCommand
   #
   def ssh_options
     {
-      :config => false,  # setting config to `false` is odd. however, if we don't do this, net:ssh doesn't use ssh-agent correctly,
-                         # for some unknown reason. also, with config `false`, it seems to still use ~/.ssh/config, so go figure.
+      :config => "~/.ssh/config",
       :global_known_hosts_file => path(:known_hosts),
       :user_known_hosts_file => '/dev/null',
       :paranoid => true
@@ -68,13 +67,12 @@ module LeapCli; module Util; module RemoteCommand
   #  return {:password => password_proc}
   #
   def node_options(node, ssh_options_override=nil)
-    ssh_options_override ||= {}
     {
       :ssh_options => {
         # :host_key_alias => node.name, << incompatible with ports in known_hosts
         :host_name => node.ip_address,
         :port => node.ssh.port
-      }.merge(contingent_ssh_options_for_node(node)).merge(ssh_options_override)
+      }.merge(contingent_ssh_options_for_node(node)).merge(ssh_options_override||{})
     }
   end