class Pod::Command::IPC::PodfileJSON

Public Class Methods

new(argv) click to toggle source
Calls superclass method Pod::Command::new
# File lib/cocoapods/command/ipc/podfile_json.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_json.rb, line 23
def run
  podfile = Pod::Podfile.from_file(@path)
  output_pipe.puts podfile.to_hash.to_json
end
validate!() click to toggle source
Calls superclass method
# File lib/cocoapods/command/ipc/podfile_json.rb, line 18
def validate!
  super
  help! 'A Podfile path is required.' unless @path
end