class Pod::Command::IPC::Podfile

Public Class Methods

new(argv) click to toggle source
Calls superclass method Pod::Command::new
# File lib/cocoapods/command/ipc/podfile.rb, line 13
def initialize(argv)
  @path = argv.shift_argument
  super
end

Public Instance Methods

run() click to toggle source
# 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!() click to toggle source
Calls superclass method
# File lib/cocoapods/command/ipc/podfile.rb, line 18
def validate!
  super
  help! 'A Podfile path is required.' unless @path
end