Method: Gloo::Objs::Query#msg_run

Defined in:
lib/gloo/objs/data/query.rb

#msg_runObject

SSH to the host and execute the command, then update result.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/gloo/objs/data/query.rb', line 75

def msg_run
  db = db_obj
  unless db
    @engine.err DB_MISSING_ERR
    return
  end

  begin
    result = db.query( sql_value, param_array )
    process_result result
  rescue => e
    @engine.err e.message
    return
  end
end