Class: Pod::Command::IPC::Podfile

Inherits:
Pod::Command::IPC show all
Defined in:
lib/cocoapods/command/inter_process_communication.rb

Overview

———————————————————————–#

Instance Method Summary collapse

Methods inherited from Pod::Command::IPC

#output_pipe

Methods inherited from Pod::Command

options, parse, report_error, run

Methods included from Pod::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Podfile

Returns a new instance of Podfile.



45
46
47
48
# File 'lib/cocoapods/command/inter_process_communication.rb', line 45

def initialize(argv)
  @path = argv.shift_argument
  super
end

Instance Method Details

#runObject



55
56
57
58
# File 'lib/cocoapods/command/inter_process_communication.rb', line 55

def run
  podfile = Pod::Podfile.from_file(@path)
  output_pipe.puts podfile.to_yaml
end

#validate!Object



50
51
52
53
# File 'lib/cocoapods/command/inter_process_communication.rb', line 50

def validate!
  super
  help! "A Podfile path is required." unless @path
end