lib/app_indicator_ssh/app_indicator_ssh.rb
#called when user selects host from menu
called when user selects host from menu
called when user selects host from menu
def host_select(widget, host)
			begin
			  system_call=SystemCall.new('gnome-terminal -x ssh ' + host) 
			  system_call.run
				@log.write('info', "Launched: #{host}")
			rescue AppIndicatorSSHError => e
				puts "Command Error: #{e} "
				@log.write('error', "Error ocurred in system call: #{e}")
			end
			raise AppIndicatorSSHError, "There was a problem calling ssh command" unless system_call.success?
    end
def host_select ( widget , host ) begin system_call = SystemCall . new ( 'gnome-terminal -x ssh ' + host ) system_call . run @log . write ( 'info' , "Launched: #{host}" ) rescue AppIndicatorSSHError => e puts "Command Error: #{e} " @log . write ( 'error' , "Error ocurred in system call: #{e}" ) end raise AppIndicatorSSHError , "There was a problem calling ssh command" unless system_call . success? end
called when user selects host from menu
called when user selects host from menu
#p :dbg => system_call.output
widget
<not_specific>
host
<not_specific>