Method: CouchShell::CorePlugin#execute_sh

Defined in:
lib/couch-shell-plugin/core.rb

#execute_sh(argstr) ⇒ Object

Raises:



187
188
189
190
191
192
# File 'lib/couch-shell-plugin/core.rb', line 187

def execute_sh(argstr)
  raise ShellError, "argument required" unless argstr
  unless system(argstr)
    shell.errmsg "command exited with status #{$?.exitstatus}"
  end
end