core/rails/lib/barclamp_raid/driver.rb
#####
#  Execute the given command, and check for errors.
#
Execute the given command, and check for errors.
Execute the given command and check for errors .
def run_command(cmd, success, error)
      log "will execute #{cmd}"
      out,_,status = @node.run(cmd)
      if ((error and status.exitstatus == error) or (success and status.exitstatus != success))
        raise "cmd #{cmd} returned #{status.exitstatus}. #{out}"
      end
      out.lines
    end
def run_command ( cmd , success , error ) log "will execute #{cmd}" out , _ , status = @node . run ( cmd ) if ( ( error and status . exitstatus == error ) or ( success and status . exitstatus != success ) ) raise "cmd #{cmd} returned #{status.exitstatus}. #{out}" end out . lines end
Execute the given command, and check for errors.
Execute the given command and check for errors .
cmd
<not_specific>
success
<not_specific>
error
<not_specific>