Class: Motion::Project::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/project/cocoapods.rb

Instance Method Summary collapse

Instance Method Details

#pods(&block) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/motion/project/cocoapods.rb', line 35

def pods(&block)
  @pods ||= Motion::Project::CocoaPods.new(self)
  if block
    unless ENV['COCOAPODS_NO_UPDATE']
      Pod::Command::Repo.new(Pod::Command::ARGV.new(["update"])).run
    end
    @pods.instance_eval(&block)
    @pods.install!
  end
  @pods
end