Method: Gct::Command::Robot::Podfile#run

Defined in:
lib/gct/command/robot/podfile.rb

#runObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/gct/command/robot/podfile.rb', line 30

def run
  db = Database::Data.new
  sql = "select * from project where is_done = 1 order by create_time DESC limit 1"
  res = db.query(sql)
  message = "<font color=\"info\">podfile 更新完毕</font>"
  if !res.nil? && res.count > 0 
    res.each do |row|
      branch = row["branch"]
      message = "<font color=\"info\">#{branch} podfile 更新完毕</font>"
    end
  end
  
  content = "#{message}"
  robot_send(content)
end