Method: Flutter::Upload#update_host

Defined in:
lib/upload.rb

#update_hostObject

更新下本地SoHuHost



59
60
61
62
63
64
65
66
67
68
# File 'lib/upload.rb', line 59

def update_host
  if !Dir.exist?(@framework_localPath)
    # 执行Git clone
    system("git clone #{@framework_url} #{@framework_localPath}")
  else
    # 执行 git pull
    system("git -C #{@framework_localPath} checkout .")
    system("git -C #{@framework_localPath} pull")
  end
end