lib/rye/box.rb in rye-0.6.1 vs lib/rye/box.rb in rye-0.6.2
- old
+ new
@@ -328,10 +328,10 @@
# NOTE: authorize_keys_remote disables safe-mode for this box while it runs
# which will hit you funky style if your using a single instance
# of Rye::Box in a multithreaded situation.
#
def authorize_keys_remote(other_user=nil)
- this_user = other_user || @user
+ this_user = other_user || opts[:user]
added_keys = []
rap = Rye::Rap.new(self)
# The homedir path is important b/c this is where we're going to
# look for the .ssh directory. That's where auth love is stored.