Method: RunLoop::Shell.run_shell_command

Defined in:
lib/run_loop/shell.rb

.run_shell_command(args, options = {}) ⇒ Object



29
30
31
32
33
34
35
36
37
# File 'lib/run_loop/shell.rb', line 29

def self.run_shell_command(args, options={})
  shell = Class.new do
    include RunLoop::Shell
    def to_s; "#<Anonymous Shell>"; end
    def inspect; to_s; end
  end.new

  shell.run_shell_command(args, options)
end