Class: Pod::Command::IPC::Podfile
Instance Method Summary
collapse
#output_pipe
#ensure_master_spec_repo_exists!, ensure_not_root_or_allowed!, options, report_error, run
#config
Constructor Details
#initialize(argv) ⇒ Podfile
13
14
15
16
|
# File 'lib/cocoapods/command/ipc/podfile.rb', line 13
def initialize(argv)
@path = argv.shift_argument
super
end
|
Instance Method Details
#run ⇒ Object
23
24
25
26
27
|
# File 'lib/cocoapods/command/ipc/podfile.rb', line 23
def run
require 'yaml'
podfile = Pod::Podfile.from_file(@path)
output_pipe.puts podfile.to_yaml
end
|
#validate! ⇒ Object
18
19
20
21
|
# File 'lib/cocoapods/command/ipc/podfile.rb', line 18
def validate!
super
help! 'A Podfile path is required.' unless @path
end
|