Class: Pod::Command::Stable

Inherits:
Pod::Command show all
Extended by:
Executable
Defined in:
lib/cocoapods-linkline/command/stable/stable.rb

Instance Method Summary collapse

Instance Method Details

#envObject

Env ########################################



23
24
25
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 23

def env
  File.join(File.expand_path('~/.cache'), 'cocoapods-linkline','stable',@ll_stable_source.split('/').last.chomp('.git').to_s)
end

#ll_stable_specs_business_func_nameObject



32
33
34
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 32

def ll_stable_specs_business_func_name 
  "stable_specs_business" 
end

#ll_stable_specs_func_nameObject

Constant ########################################



29
30
31
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 29

def ll_stable_specs_func_name
  "stable_specs" 
end

#ll_stable_specs_local_func_nameObject



35
36
37
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 35

def ll_stable_specs_local_func_name
  "stable_specs_lock" 
end

#runObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 42

def run
  #1、first load source and origin lock name from podfile
  ll_load_stable

  #2、clone origin lock spec to cache dir 
  ll_cloneStable

  #3、fetch newest code
  git_reset
  git_fetch
  git_checkout_and_pull

  local = ll_fetch_local_stable_datas
  origin = ll_fetch_origin_stable_datas
  #4、show origin_stable_lock diff with local_stable_lock
  ll_show_lock_diff(local, origin)

  #5、rewirte local_stable_lock with origin_stable_lock
  ll_rewirte_stable_lock(origin)
end