bin/rye in rye-0.6.0 vs bin/rye in rye-0.6.1
- old
+ new
@@ -33,11 +33,12 @@
after do
end
-desc "Add your public keys to one or more remote machines"
+about "Add your public keys to one or more remote machines"
+usage "rye authorize [-u username] host"
option :u, :user, String, "Username"
argv :hostname
command :authorize do |obj|
raise "You must specify a host" unless obj.argv.hostname
@@ -54,11 +55,11 @@
end
end
command_alias :authorize, :authorise
-desc "Add your public keys to your current account on this machine"
+about "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')
puts "Added public keys for: ", rbox.authorize_keys_local
@@ -66,15 +67,15 @@
end
command_alias :local_authorize, :local_authorise
-desc "Generate a public key from a private key"
+about "Generate a public key from a private key"
-desc "Fetch the host keys for remote machines (suitable for your ~/.ssh/known_hosts file)"
+about "Fetch the host keys for remote machines (suitable for your ~/.ssh/known_hosts file)"
usage "rye hostkey HOSTNAME [HOSTNAME2 HOSTNAME3 ...]"
argv :hostname
command :hostkeys do |obj|
raise "You must specify a host" unless obj.argv.hostname
ret = Rye.remote_host_keys(obj.argv.hostname)
@@ -82,17 +83,17 @@
puts ret.stdout
end
command_alias :hostkeys, :hostkey
-desc "Display your private keys"
+about "Display your private keys"
command :keys do |obj|
Rye.keys.each do |key|
puts key.join(' ')
end
end
-desc "Display your public SSH keys"
+about "Display your public SSH keys"
usage "rye pubkeys [--pem] [KEYPATH]"
option :p, :pem, "Output in PEM format"
argv :keypath
command :pubkeys do |obj|
keys = obj.argv.empty? ? Rye.keys.collect { |k| k[2] } : obj.argv