Module: Pod::Extension::Development::SourceDSL

Included in:
Source
Defined in:
lib/cocoapods-extension/development/dsl.rb

Instance Method Summary collapse

Instance Method Details

#pod(name = nil, *requirements) ⇒ Object



20
21
22
23
24
25
# File 'lib/cocoapods-extension/development/dsl.rb', line 20

def pod(name = nil, *requirements)
    unless name
        raise StandardError, 'A development requires a name.'
    end
    @current_domain_definition.store_pod(name, *requirements)
end

#source(domain, options = nil) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/cocoapods-extension/development/dsl.rb', line 9

def source(domain, options = nil)
    if options
        raise Informative, "Unsupported options `#{options}` for domain `#{domain}`."
    end

    @current_domain_definition = Pod::Extension::SourceDefinition::new(domain, @parent)
    yield if block_given?
ensure
    @current_domain_definition = nil
end