Module: Pod::Podfile::DSL
- Defined in:
- lib/cocoapods_plugin.rb
Constant Summary collapse
- @@fix_copy_bundle =
false
- @@fix_copy_dysms =
false
- @@bin_cache_path =
nil
- @@enable_prebuild_cache =
true
Class Method Summary collapse
Instance Method Summary collapse
- #disable_bin_cache ⇒ Object
- #enable_bin_cache ⇒ Object
- #fix_copy_bundle ⇒ Object
- #fix_copy_dysms ⇒ Object
- #set_bin_cache_path(path) ⇒ Object
Class Method Details
.cache_enabled ⇒ Object
49 50 51 |
# File 'lib/cocoapods_plugin.rb', line 49 def self.cache_enabled @@enable_prebuild_cache end |
.cache_path ⇒ Object
43 44 45 46 47 |
# File 'lib/cocoapods_plugin.rb', line 43 def self.cache_path @@bin_cache_path ||= Pathname(File.('~') + '/.cocoapods-bin-cache') FileUtils.mkdir_p(@@bin_cache_path) unless @@bin_cache_path.exist? @@bin_cache_path end |
.copy_bunlde_fixed ⇒ Object
53 54 55 |
# File 'lib/cocoapods_plugin.rb', line 53 def self.copy_bunlde_fixed @@fix_copy_bundle end |
.copy_dysms_fixed ⇒ Object
57 58 59 |
# File 'lib/cocoapods_plugin.rb', line 57 def self.copy_dysms_fixed @@fix_copy_dysms end |
Instance Method Details
#disable_bin_cache ⇒ Object
65 66 67 |
# File 'lib/cocoapods_plugin.rb', line 65 def disable_bin_cache @@enable_prebuild_cache = false end |
#enable_bin_cache ⇒ Object
61 62 63 |
# File 'lib/cocoapods_plugin.rb', line 61 def enable_bin_cache @@enable_prebuild_cache = true end |
#fix_copy_bundle ⇒ Object
69 70 71 |
# File 'lib/cocoapods_plugin.rb', line 69 def fix_copy_bundle @@fix_copy_bundle = true end |
#fix_copy_dysms ⇒ Object
73 74 75 |
# File 'lib/cocoapods_plugin.rb', line 73 def fix_copy_dysms @@fix_copy_dysms = true end |
#set_bin_cache_path(path) ⇒ Object
78 79 80 81 82 |
# File 'lib/cocoapods_plugin.rb', line 78 def set_bin_cache_path(path) pathname = Pathname(path) raise 'bin_cache_path not exist' unless pathname.exist? @@bin_cache_path = pathname end |