bin/rye in rye-0.5.1 vs bin/rye in rye-0.5.2

- old
+ new

@@ -17,10 +17,14 @@ require 'rye' include Drydock global :p, :path, String, "A directory containing SSH private keys or the path to a private key" +global :V, :version, "Display version number" do + puts "Rye version: #{Rye::VERSION}" + exit 0 +end before do |obj| # Load private keys if specified if obj.global.path keys = Rye.find_private_keys(obj.global.path) @@ -55,10 +59,10 @@ desc "Add your public keys to your current account on this machine" command :authorize_local do |obj| user = Rye.sysinfo.user puts "Authorizing #{user}@localhost" - rbox = Rye::Box.new('localhost').connect + rbox = Rye::Box.new('localhost') puts "Added public keys for: ", rbox.authorize_keys_local puts "Now try: " << "ssh #{user}@localhost" end command_alias :local_authorize, :local_authorise