Class: Pod::Podfile

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-developing-folder/folder.rb,
lib/cocoapods-developing-folder/folder_DSL.rb,
lib/cocoapods-developing-folder/local_pod_DSL.rb,
lib/cocoapods-developing-folder/local_pod_DSL.rb

Defined Under Namespace

Modules: DSL

Instance Method Summary collapse

Instance Method Details

#inhibit_warnings_with_condition(&condition) ⇒ Object



18
19
20
21
# File 'lib/cocoapods-developing-folder/folder.rb', line 18

def inhibit_warnings_with_condition(&condition) 
    require_relative 'inhibit_warnings_with_condition'
    Pod.set_inhibit_waning_condition_block  proc(&condition)
end

#local_pod_searching_root(path) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/cocoapods-developing-folder/local_pod_DSL.rb', line 10

def local_pod_searching_root(path)
    if path.kind_of? Array
        Pod.local_pod_DSL_root_paths = path
    elsif path.kind_of? String
        Pod.local_pod_DSL_root_paths = [path]
    else
        raise "[Error] wrong type for `local_pod_searching_root`"
    end
end

#use_folders(*skipped_top_level_folder_names) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/cocoapods-developing-folder/folder.rb', line 7

def use_folders(*skipped_top_level_folder_names)
    require_relative 'preserve_folder'
    names_to_skip = []
    first = skipped_top_level_folder_names.first
    if first.is_a? Hash
        names_to_skip = first[:skip_top_level_group]
    end
    Pod.set_skipped_top_level_folder_names (names_to_skip or [])    
end