Class: Pod::Podfile
- Inherits:
-
Object
- Object
- Pod::Podfile
- Defined in:
- lib/helper/podfile_options.rb,
lib/dongjia_branch_inspector.rb,
lib/helper/podfile_local_importer.rb
Defined Under Namespace
Modules: DSL Classes: TargetDefinition
Instance Method Summary collapse
- #import_relative_in(path = './') ⇒ Object
- #pod(name = nil, *requirements, &block) ⇒ Object
-
#pod_alias_by_inspector ⇒ Object
Hook pod 方法.
Instance Method Details
#import_relative_in(path = './') ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/helper/podfile_local_importer.rb', line 10 def import_relative_in(path = './') @local_spec_importing = true @local_spec_path = path yield if block_given? @local_spec_path = nil @local_spec_importing = false end |
#pod(name = nil, *requirements, &block) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dongjia_branch_inspector.rb', line 14 def pod(name = nil, *requirements, &block) if name.start_with?('DJ') && requirements.count > 0 req = requirements.first if req[:branch] && req[:branch] != 'master' UI.warn "检测到 #{name} 指向了分支 #{req[:branch]}\n" exit -1 elsif req[:tag] UI.warn "检测到 #{name} 指向了标签 #{req[:tag]}\n" exit -1 elsif req[:commit] UI.warn "检测到 #{name} 指向了节点 #{req[:commit]}\n" exit -1 end end pod_alias_by_inspector(name, *requirements, &block) end |
#pod_alias_by_inspector ⇒ Object
Hook pod 方法
12 |
# File 'lib/dongjia_branch_inspector.rb', line 12 alias_method :pod_alias_by_inspector, :pod |