class QmailLog::SSH::Configure
Public Class Methods
backend(host, ssh_options)
click to toggle source
# File lib/qmail_log/ssh/configure.rb, line 5 def backend host, ssh_options ssh_options.symbolize_keys! case host when 'localhost', '127.0.0.1' set :backend, :exec else set :backend, :ssh set :host, host set :ssh_options, ssh_options set :sudo_password, ssh_options[:password] end end