Class: BB::StableSpecs

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-bb-PodAssistant/config/stable_specs.rb

Instance Method Summary collapse

Instance Method Details

#readData(yml_path) ⇒ Object



9
10
11
# File 'lib/cocoapods-bb-PodAssistant/config/stable_specs.rb', line 9

def readData(yml_path)
  return YamlFilesHelper.read_stable_lock_yaml(yml_path)
end

#update_local_stable_lock(yml_path, pod_targets) ⇒ Object

更新podfile配置文件使用(项目)



21
22
23
24
# File 'lib/cocoapods-bb-PodAssistant/config/stable_specs.rb', line 21

def update_local_stable_lock(yml_path, pod_targets)
  YamlFilesHelper.save_local_stable_podlock(yml_path, pod_targets)
  puts "[成功] 更新ymal配置文件#{yml_path}".green
end

#update_stable_lock(yml_path, pod_targets) ⇒ Object

podfile 更新配置文件使用(通用)



16
17
18
19
# File 'lib/cocoapods-bb-PodAssistant/config/stable_specs.rb', line 16

def update_stable_lock(yml_path, pod_targets)
  YamlFilesHelper.save_stable_podlock(yml_path, pod_targets)
  puts "[成功] 更新ymal配置文件#{yml_path}".green
end

#writeData(yml_path, data) ⇒ Object



12
13
14
# File 'lib/cocoapods-bb-PodAssistant/config/stable_specs.rb', line 12

def writeData(yml_path, data)
  YamlFilesHelper.save_stable_lock_yaml(yml_path, data)  
end