Add mpw-ssh

This commit is contained in:
nishiki 2013-08-06 22:24:09 +02:00
parent 54fd0659d7
commit 417506d693
4 changed files with 59 additions and 0 deletions

22
mpw-ssh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/ruby
# author: nishiki
# mail: nishiki@yaegashi.fr
# info: a simple script who manage your passwords
require 'rubygems'
require 'pathname'
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
require "#{APP_ROOT}/CliSSH.rb"
if ARGV.length != 1
puts "Usage: mpw-ssh search"
exit 2
end
search = ARGV[0]
cli = CliSSH.new()
cli.ssh(search)
exit 0