lib/net/ssh/session.rb in net-ssh-session-0.1.2 vs lib/net/ssh/session.rb in net-ssh-session-0.1.3

- old
+ new

@@ -131,9 +131,13 @@ # @return [SessionCommand] def last_command history.last end + def method_missing(name, *args) + run("#{name} #{args.join(' ')}".strip) + end + private def establish_connection @connection = Net::SSH.start(host, user, :password => password) @shell = @connection.shell \ No newline at end of file