Method: Nailgun::Client#run
- Defined in:
- lib/nailgun/client.rb
#run(command, *args) ⇒ Object
Public: Run a command on the Client instance
command - the command string *args - any arguments to send
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nailgun/client.rb', line 38 def run(command, *args) receive_loop # start the loop send_args args.flatten send_env opts[:env] send_dir opts[:dir] send_command command send_stdin opts[:stdin] receive_loop.join return nil end |