Method: CBin::Trans::Helper#down_load_yaml

Defined in:
lib/cocoapods-lhj-bin/helpers/trans_helper.rb

#down_load_yamlObject

[View source]

21
22
23
24
25
26
27
28
# File 'lib/cocoapods-lhj-bin/helpers/trans_helper.rb', line 21

def down_load_yaml
  require 'open-uri'
  URI.open('http://aomi-ios-repo.oss-cn-shenzhen.aliyuncs.com/zh2hant.yml') do |i|
    File.open(yaml_file, 'w+') do |f|
      f.write(i.read)
    end
  end
end