Method: Consular::GnomeTerminal#execute_command

Defined in:
lib/consular/gnome-terminal.rb

#execute_command(cmd, options = {}) ⇒ Object

Execute the given command in the context of the active window.

Examples:

@osx.execute_command 'ps aux', :in => @tab_object

Parameters:

  • cmd (String)

    The command to execute.

  • options (Hash) (defaults to: {})

    Additional options to pass into appscript for the context.



156
157
158
# File 'lib/consular/gnome-terminal.rb', line 156

def execute_command(cmd, options = {})
  run_in_active_gnome_terminal cmd, options
end