bin/rye in rye-0.6.1 vs bin/rye in rye-0.6.2
- old
+ new
@@ -45,13 +45,13 @@
opts = { :debug => nil, :auth_methods => %w(publickey hostbased) }
opts[:user] = obj.option.user if obj.option.user
obj.argv.each do |hostname|
- puts "Authorizing #{rbox.opts[:user]}@#{hostname}"
- rbox = Rye::Box.new(hostname, opts).connect
+ puts "Authorizing #{obj.option.user}@#{hostname}"
+ rbox = Rye::Box.new(hostname, opts)
puts "Added public keys for: ", rbox.authorize_keys_remote
- puts "Now try: " << "ssh #{rbox.opts[:user]}@#{hostname}"
+ puts "Now try: " << "ssh #{obj.option.user}@#{hostname}"
end
end
command_alias :authorize, :authorise