Class: Pod::Command::Stable
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Stable
- Extended by:
- Executable
- Defined in:
- lib/cocoapods-linkline/command/stable/stable.rb
Instance Method Summary collapse
-
#env ⇒ Object
Env ########################################.
- #ll_stable_specs_business_func_name ⇒ Object
-
#ll_stable_specs_func_name ⇒ Object
Constant ########################################.
- #ll_stable_specs_local_func_name ⇒ Object
- #run ⇒ Object
Instance Method Details
#env ⇒ Object
Env ########################################
23 24 25 |
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 23 def env File.join(File.('~/.cache'), 'cocoapods-linkline','stable',@ll_stable_source.split('/').last.chomp('.git').to_s) end |
#ll_stable_specs_business_func_name ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
35 36 37 |
# File 'lib/cocoapods-linkline/command/stable/stable.rb', line 35 def ll_stable_specs_local_func_name "stable_specs_lock" end |
#run ⇒ Object
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 |