Top Level Namespace

Defined Under Namespace

Modules: StubShell

Instance Method Summary collapse

Instance Method Details

#`(cmd) ⇒ Object



20
21
22
# File 'lib/stub_shell.rb', line 20

def `(cmd)
  StubShell.run_command(cmd).result.stdout
end

#system(cmd) ⇒ Object



24
25
26
# File 'lib/stub_shell.rb', line 24

def system(cmd)
  StubShell.run_command(cmd).result.exitstatus == 0
end