lib/repl.rb in runeblog-0.1.29 vs lib/repl.rb in runeblog-0.1.30

- old
+ new

@@ -275,10 +275,15 @@ end puts unless testing [true, @out] end + def cmd_ssh(arg, testing = false) + pub = @blog.view.publisher + system("ssh #{pub.user}@#{pub.server}") + end + def cmd_INVALID(arg, testing = false) reset_output "\n Command '#{arg}' was not understood." print fx("\n Command ", :bold) print fx(arg, Red, :bold) puts fx(" was not understood.\n ", :bold) @@ -319,9 +324,10 @@ preview Look at current (local) view in browser browse Look at current (published) view in browser relink Regenerate index for all views rebuild Regenerate all posts and relink publish Publish (current view) + ssh Login to remote server EOS output msg msg.each_line do |line| next if testing line.chomp!